aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-14 18:14:52 +0200
committerMax <post@wickenrode.com>2015-07-14 18:14:52 +0200
commitde096a38ff571921f69e5a9dd2534945afa15b72 (patch)
tree7138f3ba93890c90a347716958a516b449799c1a /Frameworks
parentd8a2b9b9e2b998e9bcf8b6ede19b4442cecf5ef8 (diff)
downloadsequelpro-de096a38ff571921f69e5a9dd2534945afa15b72.tar.gz
sequelpro-de096a38ff571921f69e5a9dd2534945afa15b72.tar.bz2
sequelpro-de096a38ff571921f69e5a9dd2534945afa15b72.zip
that also belongs to the previous commit...
Diffstat (limited to 'Frameworks')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLResult.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLResult.m b/Frameworks/SPMySQLFramework/Source/SPMySQLResult.m
index 5b14dc20..5f54960c 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLResult.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLResult.m
@@ -321,6 +321,8 @@ static id NSNullPointer;
- (NSString *)_lossyStringWithBytes:(const void *)bytes length:(NSUInteger)length wasLossy:(BOOL *)outLossy
{
+ if(!bytes || !length) return @""; //to match -[NSString initWithBytes:length:encoding:]
+
//mysql protocol limits column names to 256 bytes.
//with inline columns and multibyte charsets this can result in a character
//being split in half at which the method above will fail.