[Mysql-cocoa-commits] CVS: SMySQL/MCPFoundationKit MCPResult.m,1.3,1.4
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2004-03-04 18:14:01
|
Update of /cvsroot/mysql-cocoa/SMySQL/MCPFoundationKit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv765/MCPFoundationKit Modified Files: MCPResult.m Log Message: Corrected the comment (for documentation production) in MCPResult to correct miss-spelling found out with the help of Dave Winter. 2004-03-04; Serge Cohen. Index: MCPResult.m =================================================================== RCS file: /cvsroot/mysql-cocoa/SMySQL/MCPFoundationKit/MCPResult.m,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MCPResult.m 1 Mar 2004 23:54:52 -0000 1.3 --- MCPResult.m 4 Mar 2004 17:52:37 -0000 1.4 *************** *** 45,53 **** MCPConnection *theConnec = [MCPConnection alloc]; MCPResult *theRes; ! NSDictionnary *theDict; NSArray *theColNames; int i, j; ! theConnec = [theConnec initToHost::albert.com withLogin:@"toto" password:@"albert" port:0]; [theConnec selectDB:@"db1"]; theRes = [theConnec queryString:@"select * from table1"]; --- 45,53 ---- MCPConnection *theConnec = [MCPConnection alloc]; MCPResult *theRes; ! NSDictionary *theDict; NSArray *theColNames; int i, j; ! theConnec = [theConnec initToHost:@"albert.com" withLogin:@"toto" password:@"albert" usingPort:0]; [theConnec selectDB:@"db1"]; theRes = [theConnec queryString:@"select * from table1"]; *************** *** 57,61 **** NSLog(@"Row : %d\n", i); for (j=0; j<[theColNames count]; j++) { ! NSLog(@" Field : %@, contain : %@\n", [theColNames objectAtInex:j], [theDict objectForKey:[theColNames objectAtIndex:j]]); } i++; --- 57,61 ---- NSLog(@"Row : %d\n", i); for (j=0; j<[theColNames count]; j++) { ! NSLog(@" Field : %@, contain : %@\n", [theColNames objectAtIndex:j], [theDict objectForKey:[theColNames objectAtIndex:j]]); } i++; |