diff options
author | Max <post@wickenrode.com> | 2015-10-31 02:54:59 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-31 02:54:59 +0100 |
commit | 2f2aafb4f5675282a37d16dce96027706096df40 (patch) | |
tree | 288d91f15322a88eb4335d13bf2c3832108d1313 /Source/SPDatabaseData.m | |
parent | 57955871fb174eefc56dfedcd8222d2e68272ca5 (diff) | |
download | sequelpro-2f2aafb4f5675282a37d16dce96027706096df40.tar.gz sequelpro-2f2aafb4f5675282a37d16dce96027706096df40.tar.bz2 sequelpro-2f2aafb4f5675282a37d16dce96027706096df40.zip |
* Basic math is hard sometimes (fixes an issue introduced by me in b2d798ba9282d3acf1a2d65de30849e529d4d255)
* Fix an exception that could occur when trying to view a damaged table
* Fix a theoretical use-after-free issue by a wrongly structured retain/release in a setter
Diffstat (limited to 'Source/SPDatabaseData.m')
-rw-r--r-- | Source/SPDatabaseData.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m index 0cbb756a..965dfcb5 100644 --- a/Source/SPDatabaseData.m +++ b/Source/SPDatabaseData.m @@ -471,6 +471,9 @@ copy_return: [result setReturnDataAsStrings:YES]; + if([connection queryErrored]) + SPLog(@"server variable lookup failed for '%@': %@ (%lu)",variable,[connection lastErrorMessage],[connection lastErrorID]); + if ([result numberOfRows] != 1) return nil; |