diff options
author | drh <drh@noemail.net> | 2003-06-02 22:50:25 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-06-02 22:50:25 +0000 |
commit | 2394e376d6613d953d539f164a4c20482802ca63 (patch) | |
tree | fc15683947f943ca53601799722db8fb2fee6cdc /src | |
parent | ade106c14aa745c1967acf8c45e7b76573a3ff39 (diff) | |
download | sqlite-2394e376d6613d953d539f164a4c20482802ca63.tar.gz sqlite-2394e376d6613d953d539f164a4c20482802ca63.zip |
Fix a bug in the COPY command introduced by check-in (991). (CVS 996)
FossilOrigin-Name: 77ec13dab85b70795ef06ff2c714cca0cd496837
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/copy.c b/src/copy.c index 95849ab04..1ee38eccb 100644 --- a/src/copy.c +++ b/src/copy.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file contains code used to implement the COPY command. ** -** $Id: copy.c,v 1.5 2003/05/17 17:35:11 drh Exp $ +** $Id: copy.c,v 1.6 2003/06/02 22:50:26 drh Exp $ */ #include "sqliteInt.h" @@ -96,7 +96,8 @@ void sqliteCopy( sqliteVdbeAddOp(v, OP_FileColumn, i, 0); } } - sqliteGenerateConstraintChecks(pParse, pTab, 0, 0, 0, 0, onError, addr); + sqliteGenerateConstraintChecks(pParse, pTab, 0, 0, pTab->iPKey>=0, + 0, onError, addr); sqliteCompleteInsertion(pParse, pTab, 0, 0, 0, 0, -1); if( (db->flags & SQLITE_CountRows)!=0 ){ sqliteVdbeAddOp(v, OP_AddImm, 1, 0); /* Increment row count */ |