File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,14 @@ -(id)initWithType:(NSString *)type cname:(NSString *)cname ctype:(NSString *)cty
56
56
}
57
57
return self;
58
58
}
59
+ -(NSString *)sqlColumnType
60
+ {
61
+ if ([_sqlColumnType isEqualToString: LKSQL_Type_Double])
62
+ {
63
+ return LKSQL_Type_Text;
64
+ }
65
+ return _sqlColumnType;
66
+ }
59
67
-(void )enableUserCalculate
60
68
{
61
69
_type = LKSQL_Mapping_UserCalculate;
Original file line number Diff line number Diff line change @@ -65,16 +65,6 @@ +(NSDictionary *)getTableMapping
65
65
return nil ;
66
66
}
67
67
#pragma mark- Table Data Function 表数据
68
- +(NSNumberFormatter *)getNumberFormatter
69
- {
70
- static NSNumberFormatter * format;
71
- static dispatch_once_t onceToken;
72
- dispatch_once (&onceToken, ^{
73
- format = [[NSNumberFormatter alloc ]init];
74
- [format setNumberStyle: NSNumberFormatterDecimalStyle];
75
- });
76
- return format;
77
- }
78
68
-(id )modelGetValue : (LKDBProperty *)property
79
69
{
80
70
id value = [self valueForKey: property.propertyName];
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ -(void)test
86
86
test.color = [UIColor orangeColor ];
87
87
test.error = @" nil" ;
88
88
89
- test.score = 83.99989989989898989898989 ;
90
-
89
+ test.score = [[ NSDate date ] timeIntervalSince1970 ] ;
90
+ addText ( @" %f " ,test. score );
91
91
// 异步 插入第一条 数据 Insert the first
92
92
[globalHelper insertToDB: test];
93
93
@@ -135,7 +135,7 @@ -(void)test
135
135
addText (@" 同步搜索 sync search" );
136
136
137
137
NSMutableArray * arraySync = [LKTest searchWithWhere: nil orderBy: nil offset: 0 count: 100 ];
138
- for (NSObject * obj in arraySync) {
138
+ for (id obj in arraySync) {
139
139
addText (@" %@ " ,[obj printAllPropertys ]);
140
140
}
141
141
You can’t perform that action at this time.
0 commit comments