Skip to content

Commit

Permalink
空字符串要用单引号表示
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 30, 2017
1 parent 0d6fb8c commit 2d61037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LKDBHelper/Helper/LKDBHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ - (void)fixSqlColumnsWithClass:(Class)clazz tableName:(NSString *)tableName
NSString *defaultValue = property.defaultValue ?: @"0";
if ([property.sqlColumnType isEqualToString:LKSQL_Type_Text]) {
if (LKDBNullIsEmptyString) {
defaultValue = @"";
defaultValue = @"''";
} else {
defaultValue = @"null";
}
Expand Down

0 comments on commit 2d61037

Please sign in to comment.