Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

缺少模型属性是NSArry 和 NSDictionary数据类型的情况 #48

Open
280369132 opened this issue Dec 4, 2017 · 0 comments
Open

Comments

@280369132
Copy link

源码:
NSString *resultStr = nil;
if ([typeStr hasPrefix:@"T@"NSString""]) {
resultStr = SQL_TEXT;
} else if ([typeStr hasPrefix:@"T@"NSData""]) {
resultStr = SQL_BLOB;
} else if ([typeStr hasPrefix:@"Ti"]||[typeStr hasPrefix:@"TI"]||[typeStr hasPrefix:@"Ts"]||[typeStr hasPrefix:@"TS"]||[typeStr hasPrefix:@"T@"NSNumber""]||[typeStr hasPrefix:@"TB"]||[typeStr hasPrefix:@"Tq"]||[typeStr hasPrefix:@"TQ"]) {
resultStr = SQL_INTEGER;
} else if ([typeStr hasPrefix:@"Tf"] || [typeStr hasPrefix:@"Td"]){
resultStr= SQL_REAL;
}

这事明显可以将字典和数组当作text格式存储起来,然后查询的时候将text转化为相应的类型输出

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant