Re: [Mysql-cocoa-users] TEXT fields as NSData?
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2004-08-07 01:32:21
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, Indeed for the last two days, the new version (2.3.0) is handling=20 properly TEXT column in that it will return a NSString object and NOT a=20= NSData anymore. If the encoding used by the DB is compatible with one of the encoding=20 supported by Cocoa, the retieve column should be correctly transformed=20= into strings. The other 'imporvement' or 'bug fix' of the 2.3 version (available=20 since the 4th or the 5th) is a better support of unsigned integer=20 types. The current version should support all signed and unsigned=20 integer types up to (and including) BIGINT (64b integers). Serge. Le 6 ao=FBt 04, =E0 19:26, John Guy a =E9crit : > BLOB is easy: > > Since the contents of a BLOB are unknown and up to the implementor=20 > (BINARY Large Object), it can only really be returned as raw data (ie.=20= > NSData) > > TEXT is trickier: > > I think there was some issue earlier on in the dev of the Framework=20 > where it was tricky to treat a TEXT object at all (in fact I am not=20 > sure it is supported in the version of the framework I am using at=20 > all) > > Potentially to do with string encoding? ie. what character set do you=20= > use to convert the TEXT object to when you put it into an NSString. > > I think someone else may be able to shed some light on this issue as I=20= > haven't been using TEXT types in my applications > > JOhn > > > > On 6 Aug 2004, at 17:25, Aaron Jacobs wrote: > >> Can someone explain to me why TEXT and BLOB fields in the database=20 >> are turned into NSData objects by SMySQL? Why not NSString? >> >> Aaron >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by OSTG. Have you noticed the changes=20= >> on >> Linux.com, ITManagersJournal and NewsForge in the past few weeks? = Now, >> one more big change to announce. We are now OSTG- Open Source=20 >> Technology >> Group. Come see the changes on the new OSTG site. www.ostg.com >> _______________________________________________ >> Mysql-cocoa-users mailing list >> Mys...@li... >> https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes = on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source=20 > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Mysql-cocoa-users mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users > > ******************************************* Serge Cohen GPG Key ID: 9CBB58FB ******************************************* -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFBFC/H5EPeG5y7WPsRArWMAJ9NKa4R/1OAxQOzNrINHCe1xkr7BwCePGU+ +P2y6AMnUOijmwVcZYEOZdY=3D =3DD6N+ -----END PGP SIGNATURE----- |