diff --git a/BGFMDB.podspec b/BGFMDB.podspec index 2fb811b..4fa33c8 100644 --- a/BGFMDB.podspec +++ b/BGFMDB.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "BGFMDB" -s.version = "2.0.2" +s.version = "2.0.3" s.summary = "完美支持iOS大部分类型数据的存储,同时带有 字典转模型 功能模块." # This description is used to generate tags and improve search results. diff --git a/BGFMDB.xcodeproj/project.xcworkspace/xcuserdata/biao.xcuserdatad/UserInterfaceState.xcuserstate b/BGFMDB.xcodeproj/project.xcworkspace/xcuserdata/biao.xcuserdatad/UserInterfaceState.xcuserstate index 0578563..babc32f 100644 Binary files a/BGFMDB.xcodeproj/project.xcworkspace/xcuserdata/biao.xcuserdatad/UserInterfaceState.xcuserstate and b/BGFMDB.xcodeproj/project.xcworkspace/xcuserdata/biao.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/BGFMDB.xcodeproj/xcuserdata/biao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/BGFMDB.xcodeproj/xcuserdata/biao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index 1844e16..8f94031 100644 --- a/BGFMDB.xcodeproj/xcuserdata/biao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/BGFMDB.xcodeproj/xcuserdata/biao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -13,21 +13,5 @@ stopOnStyle = "0"> - - - - diff --git a/BGFMDB/libs/BG/BGTool.m b/BGFMDB/libs/BG/BGTool.m index ba7aec0..207e277 100644 --- a/BGFMDB/libs/BG/BGTool.m +++ b/BGFMDB/libs/BG/BGTool.m @@ -48,6 +48,11 @@ @implementation BGTool 转换OC对象成数据库数据. */ NSString* bg_sqlValue(id value){ + + if ([value isKindOfClass:[NSNumber class]]) { + return value; + } + NSString* type = [NSString stringWithFormat:@"@\"%@\"",NSStringFromClass([value class])]; value = [BGTool getSqlValue:value type:type encode:YES]; if ([value isKindOfClass:[NSString class]]) { @@ -55,6 +60,7 @@ @implementation BGTool }else{ return value; } + } /**