Update of /cvsroot/mysql-cocoa/SMySQL
In directory sc8-pr-cvs1:/tmp/cvs-serv18432
Modified Files:
Tag: version-2
MCPResult.m
Log Message:
Corrected error for FIELD_TYPE_DATE, pointed out by moxou <mo...@ma...>.
Serge Cohen; MySQL-Cocoa project 2002-11-29.
Index: MCPResult.m
===================================================================
RCS file: /cvsroot/mysql-cocoa/SMySQL/Attic/MCPResult.m,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -C2 -d -r1.1.2.7 -r1.1.2.8
*** MCPResult.m 22 Aug 2002 21:02:45 -0000 1.1.2.7
--- MCPResult.m 29 Nov 2002 11:06:24 -0000 1.1.2.8
***************
*** 286,289 ****
--- 286,290 ----
// Pass them back as string for the moment... not TIME object in Cocoa (so far)
theCurrentObj = [NSString stringWithUTF8String:theData];
+ break;
case FIELD_TYPE_DATETIME:
theCurrentObj = [NSCalendarDate dateWithString:[NSString stringWithCString:theData] calendarFormat:@"%Y-%m-%d %H:%M:%S"];
|