diff options
-rw-r--r-- | Source/SPTableData.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m index d477b444..9b641347 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -1146,7 +1146,7 @@ // Fetch the number of rows SPMySQLResult *rowResult = [mySQLConnection queryString:[NSString stringWithFormat:@"SELECT COUNT(1) FROM %@", [[tableListInstance tableName] backtickQuotedString]]]; - if ([mySQLConnection queryErrored]) { + if ([mySQLConnection queryErrored] || !rowResult) { return NO; } |