|
@@ -535,6 +535,7 @@ - (FMResultSet *)executeQuery:(NSString *)sql withArgumentsInArray:(NSArray*)arr
|
|
|
if (_logsErrors) {
|
|
if (_logsErrors) {
|
|
|
NSLog(@"DB Error: %d \"%@\"", [self lastErrorCode], [self lastErrorMessage]);
|
|
NSLog(@"DB Error: %d \"%@\"", [self lastErrorCode], [self lastErrorMessage]);
|
|
|
NSLog(@"DB Query: %@", sql);
|
|
NSLog(@"DB Query: %@", sql);
|
|
|
|
|
+ NSLog(@"DB Path: %@", _databasePath);
|
|
|
#ifndef NS_BLOCK_ASSERTIONS
|
|
#ifndef NS_BLOCK_ASSERTIONS
|
|
|
if (_crashOnErrors) {
|
|
if (_crashOnErrors) {
|
|
|
abort();
|
|
abort();
|
|
@@ -720,6 +721,7 @@ - (BOOL)executeUpdate:(NSString*)sql error:(NSError**)outErr withArgumentsInArra
|
|
|
if (_logsErrors) {
|
|
if (_logsErrors) {
|
|
|
NSLog(@"DB Error: %d \"%@\"", [self lastErrorCode], [self lastErrorMessage]);
|
|
NSLog(@"DB Error: %d \"%@\"", [self lastErrorCode], [self lastErrorMessage]);
|
|
|
NSLog(@"DB Query: %@", sql);
|
|
NSLog(@"DB Query: %@", sql);
|
|
|
|
|
+ NSLog(@"DB Path: %@", _databasePath);
|
|
|
#ifndef NS_BLOCK_ASSERTIONS
|
|
#ifndef NS_BLOCK_ASSERTIONS
|
|
|
if (_crashOnErrors) {
|
|
if (_crashOnErrors) {
|
|
|
abort();
|
|
abort();
|
|
@@ -848,8 +850,9 @@ - (BOOL)executeUpdate:(NSString*)sql error:(NSError**)outErr withArgumentsInArra
|
|
|
|
|
|
|
|
} while (retry);
|
|
} while (retry);
|
|
|
|
|
|
|
|
- assert(rc != SQLITE_ROW );
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (rc == SQLITE_ROW) {
|
|
|
|
|
+ NSAssert(NO, @"A executeUpdate is being called with a query string", 0x00);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (_shouldCacheStatements && !cachedStmt) {
|
|
if (_shouldCacheStatements && !cachedStmt) {
|
|
|
cachedStmt = [[FMStatement alloc] init];
|
|
cachedStmt = [[FMStatement alloc] init];
|