|
@@ -3187,7 +3187,9 @@
|
|
|
if (tx == NULL) {
|
|
if (tx == NULL) {
|
|
|
tx = "";
|
|
tx = "";
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
NSString *text = [NSString stringWithFormat:@"%s",tx];
|
|
NSString *text = [NSString stringWithFormat:@"%s",tx];
|
|
|
|
|
+
|
|
|
if (!text) {
|
|
if (!text) {
|
|
|
text = @"";
|
|
text = @"";
|
|
|
}
|
|
}
|
|
@@ -5200,16 +5202,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
char *name = (char*)sqlite3_column_text(stmt, 5);
|
|
char *name = (char*)sqlite3_column_text(stmt, 5);
|
|
|
- NSString *nsname=nil;
|
|
|
|
|
- if(name!=nil)
|
|
|
|
|
- nsname= [[NSString alloc]initWithUTF8String:name];
|
|
|
|
|
|
|
+// NSString *nsname = nil;
|
|
|
|
|
+// if(name!=nil)
|
|
|
|
|
+// nsname= [[NSString alloc]initWithUTF8String:name];
|
|
|
|
|
+// if ([nsname containsString:@"(null)"]) {
|
|
|
|
|
+// nsname = @"";
|
|
|
|
|
+// }
|
|
|
|
|
+ NSString *nsname = [self textAtColumn:5 statement:stmt];
|
|
|
|
|
|
|
|
char *description = (char*)sqlite3_column_text(stmt, 6);
|
|
char *description = (char*)sqlite3_column_text(stmt, 6);
|
|
|
- NSString *nsdescription=nil;
|
|
|
|
|
- if(description!=nil)
|
|
|
|
|
- nsdescription= [[NSString alloc]initWithUTF8String:description];
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+// NSString *nsdescription=nil;
|
|
|
|
|
+// if(description!=nil)
|
|
|
|
|
+// nsdescription= [[NSString alloc]initWithUTF8String:description];
|
|
|
|
|
+// if ([nsdescription containsString:@"(null)"]) {
|
|
|
|
|
+// nsdescription = @"";
|
|
|
|
|
+// }
|
|
|
|
|
+ NSString *nsdescription = [self textAtColumn:6 statement:stmt];
|
|
|
|
|
|
|
|
// int stockUom = sqlite3_column_int(stmt, 8);
|
|
// int stockUom = sqlite3_column_int(stmt, 8);
|
|
|
// int _id = sqlite3_column_int(stmt, 9);
|
|
// int _id = sqlite3_column_int(stmt, 9);
|