[Mysql-cocoa-commits] CVS: SMySQL_test main2.m,1.3,1.4
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2002-05-06 10:04:32
|
Update of /cvsroot/mysql-cocoa/SMySQL_test In directory usw-pr-cvs1:/tmp/cvs-serv14000 Modified Files: main2.m Log Message: Test the new methods of SMySQLConnection and the -description method of SMySQLResult (through NSLog). Serge Cohen; MySQL Cocoa project, May 6th 2002. Index: main2.m =================================================================== RCS file: /cvsroot/mysql-cocoa/SMySQL_test/main2.m,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** main2.m 3 May 2002 09:38:36 -0000 1.3 --- main2.m 6 May 2002 10:04:29 -0000 1.4 *************** *** 65,70 **** // [result release]; ! // result = [connection listFields:nil forTable:@"test1"]; ! // NSLog (@"Here is theNSLog of a SMySQLResult (listFields:nil forTable:test1) %@", result); result = [connection listDBs:nil]; --- 65,73 ---- // [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]; *************** *** 77,80 **** --- 80,89 ---- NSLog (@"Here is the NSLog of a SMySQLResult (listTables) : \n%@", result); + NSLog (@"Here comes the server information : %@\n", [connection serverInfo]); + + [connection queryString:@"select blablabla error"]; + NSLog (@"Here comes the last error information : %@\n", [connection getLastErrorMessage]); + + [connection release]; [pool release]; return 0; |