mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Fixed matching bug for defining collation context to use
This commit is contained in:
parent
a818b6924c
commit
bba9689674
2 changed files with 42 additions and 29 deletions
|
@ -67,6 +67,18 @@ class CollateTest(BaseModel):
|
|||
"SELECT x FROM t1 WHERE a = d ORDER BY x;",
|
||||
"\n".join(map(lambda x: str(x), [1, 4])),
|
||||
)
|
||||
|
||||
limbo.run_test(
|
||||
"Text comparison 'abc'=c is performed using the RTRIM collating sequence.",
|
||||
"SELECT x FROM t1 WHERE 'abc' = c ORDER BY x;",
|
||||
"\n".join(map(lambda x: str(x), [1, 2, 3])),
|
||||
)
|
||||
|
||||
limbo.run_test(
|
||||
"Text comparison c='abc' is performed using the RTRIM collating sequence.",
|
||||
"SELECT x FROM t1 WHERE c = 'abc' ORDER BY x;",
|
||||
"\n".join(map(lambda x: str(x), [1, 2, 3])),
|
||||
)
|
||||
|
||||
|
||||
def cleanup(db_fullpath: str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue