From b432e686ca3d3449df74899393ab05cb4f40f6d7 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 11 Aug 2026 22:02:28 -0700 Subject: [PATCH] Use sqlite_master not sqlite_schema for older SQLite compatibility --- tests/test_create_table_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_create_table_parser.py b/tests/test_create_table_parser.py index e7ab3e8..3b878f3 100644 --- a/tests/test_create_table_parser.py +++ b/tests/test_create_table_parser.py @@ -110,7 +110,7 @@ def test_comments_and_whitespace_can_separate_check_tokens(gaps): connection = sqlite3.connect(":memory:") connection.execute(sql) stored_sql = connection.execute( - "select sql from sqlite_schema where name = 't'" + "select sql from sqlite_master where name = 't'" ).fetchone()[0] assert parse_checks(stored_sql) == [Check(f"value{gaps[4]}> 0", column="value")] @@ -130,7 +130,7 @@ def test_check_like_text_inside_strings_is_opaque(value): connection = sqlite3.connect(":memory:") connection.execute(sql) stored_sql = connection.execute( - "select sql from sqlite_schema where name = 't'" + "select sql from sqlite_master where name = 't'" ).fetchone()[0] checks = parse_checks(stored_sql) assert len(checks) == 1