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

Omit NOT NULL checks on unchanging columns in an UPDATE.

FossilOrigin-Name: 6a3aaedfb41735996470abbae6d3cd1be1f508b3
This commit is contained in:
drh
2016-02-10 16:03:20 +00:00
parent dd2b59b01d
commit bdb00225ab
5 changed files with 20 additions and 14 deletions

View File

@@ -572,7 +572,8 @@ void sqlite3Update(
/* Do constraint checks. */
assert( regOldRowid>0 );
sqlite3GenerateConstraintChecks(pParse, pTab, aRegIdx, iDataCur, iIdxCur,
regNewRowid, regOldRowid, chngKey, onError, labelContinue, &bReplace);
regNewRowid, regOldRowid, chngKey, onError, labelContinue, &bReplace,
aXRef);
/* Do FK constraint checks. */
if( hasFK ){