We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8a2b9b commit de096a3Copy full SHA for de096a3
Frameworks/SPMySQLFramework/Source/SPMySQLResult.m
@@ -321,6 +321,8 @@ - (id)_stringWithBytes:(const void *)bytes length:(NSUInteger)length
321
322
- (NSString *)_lossyStringWithBytes:(const void *)bytes length:(NSUInteger)length wasLossy:(BOOL *)outLossy
323
{
324
+ if(!bytes || !length) return @""; //to match -[NSString initWithBytes:length:encoding:]
325
+
326
//mysql protocol limits column names to 256 bytes.
327
//with inline columns and multibyte charsets this can result in a character
328
//being split in half at which the method above will fail.
0 commit comments