[Mysql-cocoa-users] blobs/text fields
Brought to you by:
sergecohen
From: John S. <joh...@hw...> - 2004-07-23 22:18:24
|
I have a database table in which one of the columns is a MEDIUMTEXT type since there may be a fair amount of data in it. How do I get the data out? I'm using this code which returns nothing for LONG_DESCRIPTION (the others are ok). while (row = [result fetchRowAsDictionary]) { DataStructure *thisOne = [[DataStructure alloc] init]; [thisOne setSHORT_DESCRIPTION:[row objectForKey:@"SHORT_DESCRIPTION"]]; [thisOne setALIAS:[row objectForKey:@"ALIAS"]]; [thisOne setLONG_DESCRIPTION:[row objectForKey:@"LONG_DESCRIPTION"]]; I've not seen any docs for doing this nor can I find an example. BLOB sample code would be nice as well ;) |