MySQL Forums
Forum List  »  Connector/C++

Introduce getBytes() interface in ResultSet class???
Posted by: Bingjun Zhang
Date: December 20, 2008 05:27AM

Hi all,

I could be wrong.

After browsing through the source code of connector c++, I found there is no way to read BLOB type column data from MySQL. The available getString() couldn't do this, as the size of the got string will be affected by '\0' byte within BLOB data. And also, the char* data() return by string is not complete as the original BLOB data in my test.

Is there a need to introduce a new interface getBytes() to do this? Or I just missed something in the code that could achieve this?

Any suggestions? Thanks.



Edited 1 time(s). Last edit at 12/20/2008 05:29AM by Bingjun Zhang.

Options: ReplyQuote


Subject
Views
Written By
Posted
Introduce getBytes() interface in ResultSet class???
4277
December 20, 2008 05:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.