add more tests for pragma user_version

This commit is contained in:
meteorgan
2025-05-28 00:47:09 +08:00
parent 2f82762ca2
commit 86249d9c28
2 changed files with 10 additions and 0 deletions

BIN
database

Binary file not shown.

View File

@@ -55,3 +55,13 @@ do_execsql_test_on_specific_db ":memory:" pragma-user-version-update {
PRAGMA user_version = 42;
PRAGMA user_version;
} {42}
do_execsql_test_on_specific_db ":memory:" pragma-user-version-negative-value {
PRAGMA user_version = -10;
PRAGMA user_version;
} {-10}
do_execsql_test_on_specific_db ":memory:" pragma-user-version-float-value {
PRAGMA user_version = 10.9;
PRAGMA user_version;
} {10}