Error in - (NSFNanoDatatype)NSFP_datatypeForTable:(NSString *)table column:(NSString *)column
tciuro opened this issue · comments
Tito Ciuro commented
The test that allocates a new dictionary when we cache the data types is wrong:
NSMutableDictionary *tempSchema = [_schema objectForKey:table];
if (nil != tempSchema) {
tempSchema = [[NSMutableDictionary alloc]init];
} else
;
It should be changed to this instead:
NSMutableDictionary *tempSchema = [_schema objectForKey:table];
if (nil == tempSchema) {
tempSchema = [[NSMutableDictionary alloc]init];
}