Permalink
Browse files

that also belongs to the previous commit...

  • Loading branch information...
dmoagx committed Jul 14, 2015
1 parent d8a2b9b commit de096a38ff571921f69e5a9dd2534945afa15b72
Showing with 2 additions and 0 deletions.
  1. +2 −0 Frameworks/SPMySQLFramework/Source/SPMySQLResult.m
@@ -321,6 +321,8 @@ - (id)_stringWithBytes:(const void *)bytes length:(NSUInteger)length
- (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.

0 comments on commit de096a3

Please sign in to comment.