diff --git a/LKDBHelper/Helper/LKDBHelper.m b/LKDBHelper/Helper/LKDBHelper.m index 48391b2..a188775 100644 --- a/LKDBHelper/Helper/LKDBHelper.m +++ b/LKDBHelper/Helper/LKDBHelper.m @@ -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"; }