1. "first keyword: --"  cosmetic bug
2. re error
This commit is contained in:
tao.chen
2026-06-22 11:31:12 +08:00
parent 6a6df9abf8
commit 87795131a3
3 changed files with 34 additions and 3 deletions
@@ -44,6 +44,9 @@ expect_ok("trailing semicolon", "SELECT 1 FROM dual;")
expect_ok("leading -- comment", "-- comment\nSELECT 1")
expect_ok("leading /* comment", "/* hi */ SELECT 1")
expect_ok("INSERT ... SELECT", "INSERT INTO t SELECT 1")
expect_ok("string 'drop'", "SELECT 'drop' AS note FROM dual")
expect_ok("quoted identifier", 'SELECT "drop" AS note FROM dual')
expect_ok("escaped quote", "SELECT 'don''t drop' AS note FROM dual")
print()
print("=== EXPECT_RAISE ===")