Fixed matching bug for defining collation context to use

This commit is contained in:
pedrocarlo 2025-04-20 02:02:07 -03:00
parent a818b6924c
commit bba9689674
2 changed files with 42 additions and 29 deletions

View file

@ -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):