mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-28 20:34:24 +01:00
fix(3301): Remove identifier assert assumption
Not every identifier should be double-quoted
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user