mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Add the ability to unregister a virtual table module by invoking
sqlite3_create_module() with a NULL sqlite3_module pointer. FossilOrigin-Name: 31e34fa3390196cdc3178bf120224b08df5ec58fa2c77079ede6e9461a430dad
This commit is contained in:
@@ -47,12 +47,12 @@ do_test intarray-1.1 {
|
||||
}
|
||||
} {table ia1 table ia2 table ia3 table ia4}
|
||||
|
||||
# Verify the inability to DROP and recreate an intarray virtual table.
|
||||
# Verify the ability to DROP and recreate an intarray virtual table.
|
||||
do_test intarray-1.1b {
|
||||
db eval {DROP TABLE ia1}
|
||||
set rc [catch {sqlite3_intarray_create db ia1} msg]
|
||||
lappend rc $msg
|
||||
} {1 SQLITE_MISUSE}
|
||||
set rc [catch {sqlite3_intarray_create db ia1} ia1]
|
||||
lappend rc $ia1
|
||||
} {/0 [0-9A-Z]+/}
|
||||
|
||||
do_test intarray-1.2 {
|
||||
db eval {
|
||||
|
@@ -1352,7 +1352,7 @@ foreach {tn sql res filter} {
|
||||
do_execsql_test 18.2.x { PRAGMA case_sensitive_like = OFF }
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Test that an existing module may not be overridden.
|
||||
# Test that it is ok to override and existing module.
|
||||
#
|
||||
do_test 19.1 {
|
||||
sqlite3 db2 test.db
|
||||
@@ -1360,7 +1360,7 @@ do_test 19.1 {
|
||||
} SQLITE_OK
|
||||
do_test 19.2 {
|
||||
register_echo_module [sqlite3_connection_pointer db2]
|
||||
} SQLITE_MISUSE
|
||||
} SQLITE_OK
|
||||
do_test 19.3 {
|
||||
db2 close
|
||||
} {}
|
||||
|
Reference in New Issue
Block a user