1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Improved VDBE comments on the constraint checker. Fix a missing write

lock in the UPDATE logic.

FossilOrigin-Name: 3bed599e74d354bf1513e4fb0e8665376ba44d0b
This commit is contained in:
drh
2013-11-01 14:03:20 +00:00
parent ccc79f021f
commit f82b9afcba
4 changed files with 14 additions and 11 deletions

View File

@@ -387,6 +387,7 @@ void sqlite3Update(
if( !okOnePass && HasRowid(pTab) ){
sqlite3OpenTable(pParse, iDataCur, iDb, pTab, OP_OpenWrite);
}
sqlite3TableLock(pParse, iDb, pTab->tnum, 1, pTab->zName);
if( onError==OE_Replace ){
openAll = 1;
}else{