aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2003-12-06 21:43:55 +0000
committerdrh <drh@noemail.net>2003-12-06 21:43:55 +0000
commit41743984bf57abf76e04cab439740d4f3f50e710 (patch)
tree1732754ca7ccf7812be0db14537f09be25b8694e /src/insert.c
parent3a6629d27ee0d4d2fb98dcfdab28d1909fc2f672 (diff)
downloadsqlite-41743984bf57abf76e04cab439740d4f3f50e710.tar.gz
sqlite-41743984bf57abf76e04cab439740d4f3f50e710.zip
Always use "(char*)0" to terminate the argument list of sqliteSetString().
This is needed for 64-bit systems that use a 32-bit integer by default. (CVS 1126) FossilOrigin-Name: 656c90387a4a714b4f31040ece9b0e15e30934af
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c
index b61572caf..cdbf66514 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle INSERT statements in SQLite.
**
-** $Id: insert.c,v 1.89 2003/08/05 13:13:38 drh Exp $
+** $Id: insert.c,v 1.90 2003/12/06 21:43:56 drh Exp $
*/
#include "sqliteInt.h"
@@ -688,7 +688,7 @@ void sqliteGenerateConstraintChecks(
char *zMsg = 0;
sqliteVdbeAddOp(v, OP_Halt, SQLITE_CONSTRAINT, onError);
sqliteSetString(&zMsg, pTab->zName, ".", pTab->aCol[i].zName,
- " may not be NULL", 0);
+ " may not be NULL", (char*)0);
sqliteVdbeChangeP3(v, -1, zMsg, P3_DYNAMIC);
break;
}