1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a problem allowing a COMMIT following an OOM to cause fts3/4 corruption.

FossilOrigin-Name: 7f41d7006db4225cf9b3d197d3a76842778669ac079e76361214a8023c9976e6
This commit is contained in:
dan
2023-10-21 18:12:07 +00:00
parent da4cfde031
commit ef6bf1bbe5
9 changed files with 66 additions and 46 deletions

View File

@ -2595,17 +2595,13 @@ do_execsql_test 17.1 {
UPDATE t1 SET b=quote(zeroblob(200)) WHERE a MATCH 'thread*';
}
do_catchsql_test 17.2 {
DROP TABLE IF EXISTS t1;
} {1 {SQL logic error}}
do_execsql_test 17.3 {
do_execsql_test 17.2 {
INSERT INTO t1(t1) VALUES('optimize');
}
do_catchsql_test 17.4 {
do_catchsql_test 17.3 {
DROP TABLE IF EXISTS t1;
} {1 {SQL logic error}}
} {0 {}}
#-------------------------------------------------------------------------
reset_db