MySQL Forums
Forum List  »  Connector/C++

Insert update blob value converting from char *object and int length
Posted by: nobody nobody
Date: February 02, 2019 04:43AM

Hi,

I am running mysql in C++ on Debian platform. I have a small serialized msgpack object about 200 bytes, to run a statement to insert update the blob field, the blob value is from a buffer in char *object, int length, is any data type I can wrap the char *object and int length for the blob messageobject?

insert into mymessagetable (id, messageobject, timestamp) value (1, convertToBlob(object, length), 1549104102)

Thank you.

Options: ReplyQuote


Subject
Views
Written By
Posted
Insert update blob value converting from char *object and int length
819
February 02, 2019 04:43AM


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.