Update of /cvsroot/mysql-cocoa/SMySQL_test
In directory usw-pr-cvs1:/tmp/cvs-serv21771
Modified Files:
main2.m
Log Message:
Updating before tagging.
Serge Cohen; MySQL Cocoa project, May 7th 2002.
Index: main2.m
===================================================================
RCS file: /cvsroot/mysql-cocoa/SMySQL_test/main2.m,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** main2.m 6 May 2002 10:04:29 -0000 1.4
--- main2.m 7 May 2002 19:10:57 -0000 1.5
***************
*** 56,61 ****
NSLog(@"%@ : %@\n", name, [row objectForKey:name]);
if ([result isBlobAtIndex:i]) {
! const char *theUTF8String = [[row objectForKey:name] bytes];
! NSString *theString = [NSString stringWithUTF8String:theUTF8String];
NSLog(@" as string : %@\n",theString);
}
--- 56,60 ----
NSLog(@"%@ : %@\n", name, [row objectForKey:name]);
if ([result isBlobAtIndex:i]) {
! NSString *theString = [result stringWithCString:[[row objectForKey:name] bytes]];
NSLog(@" as string : %@\n",theString);
}
***************
*** 65,81 ****
// [result release];
! result = [connection queryString:@"select test1_id, test1_key from test1 where id=1"];
NSLog (@"Here is theNSLog of a SMySQLResult %@", result);
result = [connection listFields:nil forTable:@"test1"];
NSLog (@"Here is theNSLog of a SMySQLResult (listFields:nil forTable:test1) %@", result);
result = [connection listDBs:nil];
NSLog (@"Here is the NSLog of a SMySQLResult (listDBs) : \n%@", result);
result = [connection listDBs:@"test\\_%%"];
NSLog (@"Here is the NSLog of a SMySQLResult (listDBs:test\\_%%) : \n%@", result);
result = [connection listTables:nil];
NSLog (@"Here is the NSLog of a SMySQLResult (listTables) : \n%@", result);
--- 64,85 ----
// [result release];
! result = [connection queryString:@"select test1_id, test1_key from test1 where test1_id=1"];
! [result fetchFieldsName];
NSLog (@"Here is theNSLog of a SMySQLResult %@", result);
result = [connection listFields:nil forTable:@"test1"];
+ [result fetchFieldsName];
NSLog (@"Here is theNSLog of a SMySQLResult (listFields:nil forTable:test1) %@", result);
result = [connection listDBs:nil];
+ [result fetchFieldsName];
NSLog (@"Here is the NSLog of a SMySQLResult (listDBs) : \n%@", result);
result = [connection listDBs:@"test\\_%%"];
+ [result fetchFieldsName];
NSLog (@"Here is the NSLog of a SMySQLResult (listDBs:test\\_%%) : \n%@", result);
result = [connection listTables:nil];
+ [result fetchFieldsName];
NSLog (@"Here is the NSLog of a SMySQLResult (listTables) : \n%@", result);
|