mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-12 12:24:13 +02:00
Use sqlite_master not sqlite_schema for older SQLite compatibility
This commit is contained in:
parent
2303b80aef
commit
b432e686ca
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue