[Mysql-cocoa-commits] CVS: SMySQL/MCPFoundationKit MCPConnection.m,1.3,1.4
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2004-05-14 11:16:15
|
Update of /cvsroot/mysql-cocoa/SMySQL/MCPFoundationKit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv730/MCPFoundationKit Modified Files: MCPConnection.m Log Message: Quite some work to fix and enhance the MCPApplicationKit. Now supports well the creation of a database, and fixed an issue with the nib file being unproperly placed. 2004-05-14; Serge Cohen. Index: MCPConnection.m =================================================================== RCS file: /cvsroot/mysql-cocoa/SMySQL/MCPFoundationKit/MCPConnection.m,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MCPConnection.m 1 Mar 2004 23:54:52 -0000 1.3 --- MCPConnection.m 14 May 2004 11:16:04 -0000 1.4 *************** *** 52,56 **** MCPResult *theRes; ! theConnec = [theConnec initToHost::albert.com withLogin:@"toto" password:@"albert" port:0]; [theConnec selectDB:@"db1"]; theRes = [theConnec queryString:@"select * from table1"]; --- 52,56 ---- MCPResult *theRes; ! theConnec = [theConnec initToHost:@"albert.com" withLogin:@"toto" password:@"albert" usingPort:0]; [theConnec selectDB:@"db1"]; theRes = [theConnec queryString:@"select * from table1"]; *************** *** 402,406 **** const char *theCStringBuffer = [self cStringFromString:theString]; unsigned int theLength; ! char *theCEscBuffer; NSString *theReturn; --- 402,406 ---- const char *theCStringBuffer = [self cStringFromString:theString]; unsigned int theLength; ! char *theCEscBuffer; NSString *theReturn; *************** *** 427,433 **** "*/ { ! MCPResult *theResult = [MCPResult alloc]; ! const char *theCQuery = [self cStringFromString:query]; ! int theQueryCode; // Temp for debugging: /* --- 427,433 ---- "*/ { ! MCPResult *theResult = [MCPResult alloc]; ! const char *theCQuery = [self cStringFromString:query]; ! int theQueryCode; // Temp for debugging: /* *************** *** 462,467 **** } else { ! NSLog (@"Problem in queryString error code is : %d, query is : %s -in ObjC : %@-\n", theQueryCode, theCQuery, query); ! theResult = [theResult init]; } if (theResult) { --- 462,469 ---- } else { ! NSLog (@"Problem in queryString error code is : %d, query is : %s -in ObjC : %@-\n", theQueryCode, theCQuery, query); ! NSLog(@"Error message is : %@\n", [self getLastErrorMessage]); ! // theResult = [theResult init]; // Old version... ! theResult = nil; } if (theResult) { |