File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -651,12 +651,12 @@ - (BOOL)getTableCreatedWithTableName:(NSString *)tableName
651
651
652
652
[self executeDB: ^(FMDatabase *db) {
653
653
FMResultSet *set = [db executeQuery: @" select count(name) from sqlite_master where type='table' and name=?" , tableName];
654
- [set next ];
655
-
656
- if ([set longForColumnIndex: 0 ] > 0 ) {
657
- isTableCreated = YES ;
654
+ if ([set next ])
655
+ {
656
+ if ([set intForColumnIndex: 0 ] > 0 ) {
657
+ isTableCreated = YES ;
658
+ }
658
659
}
659
-
660
660
[set close ];
661
661
}];
662
662
return isTableCreated;
Original file line number Diff line number Diff line change @@ -723,12 +723,12 @@ -(void)setNilValueForKey:(NSString *)key
723
723
}
724
724
-(id )valueForUndefinedKey : (NSString *)key
725
725
{
726
- NSLog (@" 你有get方法没实现" );
726
+ NSLog (@" 你有get方法没实现,key: %@ " ,key );
727
727
return nil ;
728
728
}
729
729
-(void )setValue : (id )value forUndefinedKey : (NSString *)key
730
730
{
731
- NSLog (@" 你有set方法没实现" );
731
+ NSLog (@" 你有set方法没实现,key: %@ " ,key );
732
732
}
733
733
734
734
#pragma mark-
You can’t perform that action at this time.
0 commit comments