[Mysql-cocoa-commits] CVS: SMySQL_test main2.m,1.2,1.3
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2002-05-03 09:38:38
|
Update of /cvsroot/mysql-cocoa/SMySQL_test In directory usw-pr-cvs1:/tmp/cvs-serv32517 Modified Files: main2.m Log Message: Test methods listDBs, listTables, listFields, and description (via NSLog). Still some strange bug on queryString. Serge Cohen; MySQL Cocoa Project, May 3rd 2002. Index: main2.m =================================================================== RCS file: /cvsroot/mysql-cocoa/SMySQL_test/main2.m,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main2.m 13 Feb 2002 13:35:25 -0000 1.2 --- main2.m 3 May 2002 09:38:36 -0000 1.3 *************** *** 44,48 **** connection = [[SMySQLConnection alloc] initToHost:@"localhost" withLogin:@"ObjC" password:@"MySQL_class" usingPort:0]; [connection selectDB:@"test_mysqlclass"]; ! result = [[connection queryString:@"select * from test1"] retain]; count = [result numOfFields]; names = [result fetchFieldsName]; --- 44,48 ---- connection = [[SMySQLConnection alloc] initToHost:@"localhost" withLogin:@"ObjC" password:@"MySQL_class" usingPort:0]; [connection selectDB:@"test_mysqlclass"]; ! result = [connection queryString:@"select * from test1"]; count = [result numOfFields]; names = [result fetchFieldsName]; *************** *** 62,66 **** } } ! [result release]; [pool release]; return 0; --- 62,80 ---- } } ! NSLog (@"Here is the NSLog of a SMySQLResult : \n%@", result); ! // [result release]; ! ! // 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); ! [pool release]; return 0; |