1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-28 19:36:04 +03:00

Bug fix: The IN operator was not working if either side derived from

an INTEGER PRIMARY KEY. (CVS 354)

FossilOrigin-Name: dbcfe198fbaa155874ef82a96b6a4b993ccf3931
This commit is contained in:
drh
2002-01-28 15:53:03 +00:00
parent 71172c5c51
commit 6b12545f4f
12 changed files with 300 additions and 175 deletions

View File

@@ -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.32 2002/01/06 17:07:40 drh Exp $
** $Id: insert.c,v 1.33 2002/01/28 15:53:05 drh Exp $
*/
#include "sqliteInt.h"
@@ -252,7 +252,7 @@ void sqliteInsert(
/* Create the new record and put it into the database.
*/
sqliteVdbeAddOp(v, OP_MakeRecord, pTab->nCol, 0);
sqliteVdbeAddOp(v, OP_Put, base, keyColumn>=0);
sqliteVdbeAddOp(v, OP_PutIntKey, base, keyColumn>=0);
/* Create appropriate entries for the new data row in all indices
** of the table.