Skip to content

Commit 2d61037

Browse files
空字符串要用单引号表示
1 parent 0d6fb8c commit 2d61037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LKDBHelper/Helper/LKDBHelper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ - (void)fixSqlColumnsWithClass:(Class)clazz tableName:(NSString *)tableName
665665
NSString *defaultValue = property.defaultValue ?: @"0";
666666
if ([property.sqlColumnType isEqualToString:LKSQL_Type_Text]) {
667667
if (LKDBNullIsEmptyString) {
668-
defaultValue = @"";
668+
defaultValue = @"''";
669669
} else {
670670
defaultValue = @"null";
671671
}

0 commit comments

Comments
 (0)