Skip to content

Commit 278a9cf

Browse files
committed
去掉将 double 映射为 sqlite text 的限制
现在 sqlite3 里,double 类型占用 8 bytes,对于一般的 double 类型的数据,也基本够用,无需以 text 来容纳
1 parent 44057bd commit 278a9cf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

LKDBHelper/Helper/LKDBHelper.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,6 @@ - (BOOL)_createTableWithModelClass:(Class)modelClass tableName:(NSString*)tableN
625625

626626
NSString* columnType = property.sqlColumnType;
627627

628-
if ([columnType isEqualToString:LKSQL_Type_Double]) {
629-
columnType = LKSQL_Type_Text;
630-
}
631-
632628
[table_pars appendFormat:@"%@ %@", property.sqlColumnName, columnType];
633629

634630
if ([property.sqlColumnType isEqualToString:LKSQL_Type_Text]) {
@@ -1554,4 +1550,4 @@ + (LKDBHelper*)getUsingLKDBHelper
15541550

15551551
@implementation LKDBWeakObject
15561552

1557-
@end
1553+
@end

0 commit comments

Comments
 (0)