Skip to content

Commit

Permalink
优化.
Browse files Browse the repository at this point in the history
优化.
  • Loading branch information
huangzhibiao committed Jan 12, 2018
1 parent 07c1e21 commit 32b92e1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion BGFMDB.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,5 @@
stopOnStyle = "0">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "BGFMDB/ViewController.m"
timestampString = "537333388.387042"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "180"
endingLineNumber = "180"
landmarkName = "-viewDidLoad"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
6 changes: 6 additions & 0 deletions BGFMDB/libs/BG/BGTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@ @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]]) {
return [NSString stringWithFormat:@"'%@'",value];
}else{
return value;
}

}

/**
Expand Down

0 comments on commit 32b92e1

Please sign in to comment.