JRDB
JRDB copied to clipboard
插入表出现以下问题怎么回事
Warning: I could not find the column named 'sort'. Warning: I could not find the column named 'all'.
因为 sort 是sql语句的关键字,所以你在设置property的时候避开sql的关键字,或者重写置换列名的方法 @see JRPersistent Protocol
- (NSDictionary<NSString *,NSString *> *)jr_databaseNameMap { return @{ @"name" : @"db_name", @"age" : @"db_age", @"height" : @"db_height", }; }