|
|
@@ -704,7 +704,7 @@ - (FMResultSet *)executeQuery:(NSString *)sql withArgumentsInArray:(NSArray*)arr
|
|
|
statement = [[FMStatement alloc] init];
|
|
|
[statement setStatement:pStmt];
|
|
|
|
|
|
- if (_shouldCacheStatements) {
|
|
|
+ if (_shouldCacheStatements && sql) {
|
|
|
[self setCachedStatement:statement forQuery:sql];
|
|
|
}
|
|
|
}
|