SetDatabaseBlob() truncates data

Just starting out? Need help? Post your questions and find answers here.
UrgentKettle
User
User
Posts: 12
Joined: Thu Jan 27, 2011 12:25 pm

SetDatabaseBlob() truncates data

Post by UrgentKettle »

When using the ODBC database connection and SetDatabaseBlob(), if the blob data to be inserted is greater than 65535 bytes the remainder gets truncated. When selecting the data back from the DB the length of the blob data is 65535 bytes.

Inserting data that is less than 65536 works fine.

MySQL ODBC 5.1 Driver
UrgentKettle
User
User
Posts: 12
Joined: Thu Jan 27, 2011 12:25 pm

Re: PB4.51 - SetDatabaseBlob() truncates data

Post by UrgentKettle »

:oops:

Seems that this is a MySQL limit and NOT an issue with PB.

RTFM.... RTFM....

Use LONGBLOB column type instead of BLOB and it all works fine :D
User avatar
shadow
User
User
Posts: 34
Joined: Thu Dec 16, 2010 1:25 pm
Location: Germany

Re: PB4.51 - SetDatabaseBlob() truncates data

Post by shadow »

UrgentKettle wrote::oops:
...
RTFM.... RTFM....
...
me, too :mrgreen:
ThinkPad T61 | PureBasic 4.51 | Windows 7 (32) | Kubuntu 11.10 (64) | Syllable (32)
Post Reply