fix(3301): Remove identifier assert assumption

Not every identifier should be double-quoted
This commit is contained in:
Diego Reis
2025-09-29 22:30:31 -03:00
parent 75f088740d
commit 90f4d69774
4 changed files with 28 additions and 14 deletions

View File

@@ -355,6 +355,20 @@ def test_copy_memory_db_to_file():
sqlite.quit()
def test_parse_error():
testpath = "testing/memory.db"
if Path(testpath).exists():
os.unlink(Path(testpath))
time.sleep(0.2) # make sure closed
turso = TestTursoShell(init_commands="")
turso.run_test_fn(
"select * from sqlite_schema limit asdf;",
lambda res: "Parse error: " in res,
"Try to LIMIT using an identifier should trigger a Parse error",
)
def main():
console.info("Running all turso CLI tests...")
test_basic_queries()
@@ -378,6 +392,7 @@ def main():
test_uri_readonly()
test_copy_db_file()
test_copy_memory_db_to_file()
test_parse_error()
console.info("All tests have passed")