aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseData.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-31 02:54:59 +0100
committerMax <post@wickenrode.com>2015-10-31 02:54:59 +0100
commit2f2aafb4f5675282a37d16dce96027706096df40 (patch)
tree288d91f15322a88eb4335d13bf2c3832108d1313 /Source/SPDatabaseData.m
parent57955871fb174eefc56dfedcd8222d2e68272ca5 (diff)
downloadsequelpro-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.m3
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;