diff options
author | drh <drh@noemail.net> | 2020-01-28 15:02:23 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-01-28 15:02:23 +0000 |
commit | b9f2e5f7774cee2282c2b0980bc29233e643200f (patch) | |
tree | fb04adf7053837f004f3288d8f57b7374bc170ef /src/insert.c | |
parent | 562fd18b9dc27216191c0a6477bba9b175f7f0d2 (diff) | |
download | sqlite-b9f2e5f7774cee2282c2b0980bc29233e643200f.tar.gz sqlite-b9f2e5f7774cee2282c2b0980bc29233e643200f.zip |
Minor change for compatibility with the s390 architecture.
FossilOrigin-Name: 04885763c4cd00cbca26d048f2b19316bfc93e8edebeceaa171ebfc6c563d53e
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c index 93f22a8cb..7a04b98d8 100644 --- a/src/insert.c +++ b/src/insert.c @@ -2170,12 +2170,14 @@ void sqlite3GenerateConstraintChecks( x = *sqlite3VdbeGetOp(v, addrConflictCk); if( x.opcode!=OP_IdxRowid ){ int p2; /* New P2 value for copied conflict check opcode */ + const char *zP4; if( sqlite3OpcodeProperty[x.opcode]&OPFLG_JUMP ){ p2 = lblRecheckOk; }else{ p2 = x.p2; } - sqlite3VdbeAddOp4(v, x.opcode, x.p1, p2, x.p3, x.p4.z, x.p4type); + zP4 = x.p4type==P4_INT32 ? SQLITE_INT_TO_PTR(x.p4.i) : x.p4.z; + sqlite3VdbeAddOp4(v, x.opcode, x.p1, p2, x.p3, zP4, x.p4type); sqlite3VdbeChangeP5(v, x.p5); VdbeCoverageIf(v, p2!=x.p2); } |