pragma/user_version: Add test and update docs

This commit is contained in:
Diego Reis
2025-05-22 20:42:08 -03:00
parent 2f8042da22
commit bfe4f5acef
2 changed files with 7 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ Limbo aims to be fully compatible with SQLite, with opt-in features not supporte
| PRAGMA temp_store_directory | Not Needed | deprecated in SQLite |
| PRAGMA threads | No | |
| PRAGMA trusted_schema | No | |
| PRAGMA user_version | Partial | Only read implemented |
| PRAGMA user_version | Yes | |
| PRAGMA vdbe_addoptrace | No | |
| PRAGMA vdbe_debug | No | |
| PRAGMA vdbe_listing | No | |

View File

@@ -49,4 +49,9 @@ do_execsql_test_on_specific_db "testing/testing_user_version_10.db" pragma-user-
do_execsql_test_on_specific_db ":memory:" pragma-user-version-default {
PRAGMA user_version
} {0}
} {0}
do_execsql_test_on_specific_db ":memory:" pragma-user-version-update {
PRAGMA user_version = 42;
PRAGMA user_version;
} {42}