Skip to content

Commit

Permalink
that also belongs to the previous commit...
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoagx committed Jul 14, 2015
1 parent d8a2b9b commit de096a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Frameworks/SPMySQLFramework/Source/SPMySQLResult.m
Expand Up @@ -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.
Expand Down

0 comments on commit de096a3

Please sign in to comment.