From 63f6481f3153303c287f130342d7dffd68bf2de1 Mon Sep 17 00:00:00 2001 From: Paris Holley Date: Sun, 26 Feb 2012 13:13:35 -0600 Subject: [PATCH] removing insert id check, if two tables are inserted into and both start at the same sequence, this will fail --- Plugins/PGSQLitePlugin.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/PGSQLitePlugin.m b/Plugins/PGSQLitePlugin.m index 318e680..a249e36 100644 --- a/Plugins/PGSQLitePlugin.m +++ b/Plugins/PGSQLitePlugin.m @@ -196,10 +196,10 @@ -(void) executeSql: (NSMutableArray*)arguments withDict:(NSMutableDictionary*)op diffRowsAffected = nowRowsAffected - previousRowsAffected; rowsAffected = [NSNumber numberWithInt:diffRowsAffected]; nowInsertId = sqlite3_last_insert_rowid(db); - if (previousInsertId != nowInsertId) { + //if (previousInsertId != nowInsertId) { hasInsertId = YES; insertId = [NSNumber numberWithLongLong:sqlite3_last_insert_rowid(db)]; - } + //} keepGoing = NO; break;