diff options
Diffstat (limited to 'Frameworks/PostgresKit/Source/PGPostgresConnectionQueryExecution.m')
-rw-r--r-- | Frameworks/PostgresKit/Source/PGPostgresConnectionQueryExecution.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/PostgresKit/Source/PGPostgresConnectionQueryExecution.m b/Frameworks/PostgresKit/Source/PGPostgresConnectionQueryExecution.m index ee8853c7..3de02350 100644 --- a/Frameworks/PostgresKit/Source/PGPostgresConnectionQueryExecution.m +++ b/Frameworks/PostgresKit/Source/PGPostgresConnectionQueryExecution.m @@ -118,8 +118,8 @@ PGQueryParamData; _lastQueryWasCancelled = NO; if (!query || - ![query isKindOfClass:[NSString class]] || - ![query isKindOfClass:[PGPostgresStatement class]] || + (![query isKindOfClass:[NSString class]] && + ![query isKindOfClass:[PGPostgresStatement class]]) || ![self isConnected]) { return nil; |