Skip to content

Commit a67d90e

Browse files
author
Alexis Oyama
committed
Fix merge error from 831dd5e LP-8132
1 parent a54b1d1 commit a67d90e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Leanplum-SDK/Classes/LPDatabase.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ - (void)runQuery:(NSString *)query bindObjects:(NSArray *)objectsToBind
165165
if (!statement) {
166166
return;
167167
}
168+
int result = sqlite3_step(statement);
169+
if (result != SQLITE_DONE) {
170+
LPLog(LPError, @"SQLite fail to run query.");
171+
}
172+
sqlite3_finalize(statement);
168173
} @catch (NSException *e) {
169174
LPLog(LPError, @"SQLite operation failed.");
170175
// TODO: Make sure to catch this when new logging is in place,

0 commit comments

Comments
 (0)