mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Fixed Group By collation
This commit is contained in:
parent
bba9689674
commit
0df6c87f07
6 changed files with 21 additions and 4 deletions
|
@ -67,19 +67,25 @@ 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])),
|
||||
)
|
||||
|
||||
limbo.run_test(
|
||||
" Grouping is performed using the NOCASE collating sequence (Values 'abc', 'ABC', and 'Abc' are placed in the same group).",
|
||||
"SELECT count(*) FROM t1 GROUP BY d ORDER BY 1;",
|
||||
"\n".join(map(lambda x: str(x), [4])),
|
||||
)
|
||||
|
||||
|
||||
def cleanup(db_fullpath: str):
|
||||
wal_path = f"{db_fullpath}-wal"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue