aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-12-08 01:38:24 +0000
committerdrh <drh@noemail.net>2016-12-08 01:38:24 +0000
commit2700acaacdedf5450cbcf8ba4c2a9f7d153fe71b (patch)
treebfe15ec490be68f61c7a916d912dc4caf8c8f59b /src/insert.c
parentf14b7fb73b1f3886854f0dceacc7fd3ae04ee8d0 (diff)
downloadsqlite-2700acaacdedf5450cbcf8ba4c2a9f7d153fe71b.tar.gz
sqlite-2700acaacdedf5450cbcf8ba4c2a9f7d153fe71b.zip
More changes to take advantage of the sqlite3VdbeAppendP4() method.
FossilOrigin-Name: 83bc5e40af9b20afeed008bf3e2669b7ac9e2dc8
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c
index 0885a40f3..27e05d4de 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -1305,8 +1305,9 @@ void sqlite3GenerateConstraintChecks(
case OE_Fail: {
char *zMsg = sqlite3MPrintf(db, "%s.%s", pTab->zName,
pTab->aCol[i].zName);
- sqlite3VdbeAddOp4(v, OP_HaltIfNull, SQLITE_CONSTRAINT_NOTNULL, onError,
- regNewData+1+i, zMsg, P4_DYNAMIC);
+ sqlite3VdbeAddOp3(v, OP_HaltIfNull, SQLITE_CONSTRAINT_NOTNULL, onError,
+ regNewData+1+i);
+ sqlite3VdbeAppendP4(v, zMsg, P4_DYNAMIC);
sqlite3VdbeChangeP5(v, P5_ConstraintNotNull);
VdbeCoverage(v);
break;