mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Ensure that the database encoding cannot be changed while there are statements running. And that the connection is left in a valid state after an obscure OOM within sqlite3_deserialize().
FossilOrigin-Name: a02da71f3a80dd8e817e89cdaa775c95e38c90d2471f8fec516bed086539e2c0
This commit is contained in:
@ -157,4 +157,19 @@ do_execsql_test 5.2 {
|
||||
SELECT rtreecheck('r3')=='ok'
|
||||
} 0
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# dbsqlfuzz 4a1399d39bf9feccbf6b290da51d3b30103a4bf6
|
||||
#
|
||||
reset_db
|
||||
do_execsql_test 6.0 {
|
||||
PRAGMA encoding = 'utf16';
|
||||
CREATE VIRTUAL TABLE t1 USING rtree(id, x, y);
|
||||
}
|
||||
db close
|
||||
sqlite3 db test.db
|
||||
do_catchsql_test 6.1 {
|
||||
SELECT ( 'elvis' IN(SELECT rtreecheck('t1')) ) FROM (SELECT 1) GROUP BY 1;
|
||||
} {1 {database table is locked}}
|
||||
|
||||
finish_test
|
||||
|
||||
|
Reference in New Issue
Block a user