JRDB icon indicating copy to clipboard operation
JRDB copied to clipboard

插入表出现以下问题怎么回事

Open feimatayan opened this issue 8 years ago • 2 comments

Warning: I could not find the column named 'sort'. Warning: I could not find the column named 'all'.

feimatayan avatar May 11 '17 02:05 feimatayan

因为 sort 是sql语句的关键字,所以你在设置property的时候避开sql的关键字,或者重写置换列名的方法 @see JRPersistent Protocol

scubers avatar May 11 '17 06:05 scubers

  • (NSDictionary<NSString *,NSString *> *)jr_databaseNameMap { return @{ @"name" : @"db_name", @"age" : @"db_age", @"height" : @"db_height", }; }

scubers avatar May 11 '17 06:05 scubers