MySQL Forums
Forum List  »  Connector/C++

Re: Insert update blob value converting from char *object and int length
Posted by: Luis Silva
Date: February 06, 2019 08:35AM

Hi,

The c++ connnector version present on ubuntu is the 1.x series.

To use that connector, there are examples to help you start doing the code:
https://dev.mysql.com/doc/connector-cpp/1.1/en/connector-cpp-examples-complete-example-1.html

If you want a BLOB example, there is a UT on the code that can help you with that, using prepared statments:
https://github.com/mysql/mysql-connector-cpp/blob/1.1/test/CJUnitTestsPort/simple/BlobTest.cpp


If you want to use the newer connector (8.x series), which has the devapi source you pointed out, you need to install mysql apt, because it needs mysql server 8.0.

Here you can find the way to add it:
https://dev.mysql.com/downloads/repo/apt/

Anything, please ask!

Kind Regards,
Luís Silva

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Insert update blob value converting from char *object and int length
472
February 06, 2019 08:35AM


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.