From 2d610370b2a4359861a45fc0b1bab6fbc5079595 Mon Sep 17 00:00:00 2001 From: "lijianghuai@xiaoyouzi.com" Date: Thu, 30 Nov 2017 15:06:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E8=A6=81?= =?UTF-8?q?=E7=94=A8=E5=8D=95=E5=BC=95=E5=8F=B7=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LKDBHelper/Helper/LKDBHelper.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }