MySQL Forums
Forum List  »  Connector/C++

Re: Connector/C++ v 8 and binding parameters
Posted by: Walter Oney
Date: January 25, 2020 05:37AM

Yes, it helps. Stated more fully, you have to use the individual setXXX (setInt, setDouble, etc.) functions to set the parameterized values.

But I still have a problem. Namely, I can't figure out how to set a blob. I'm starting with binary data in memory (specifically the BIND structure described in the 5.4 API) that can contain nuls. PreparedStatement::setBlob wants an iostream, and I've spent hours looking for something like std::istringstream that will work with binary data. Or else a function like mysqli_stmt_send_long_data that's in the JDBC api.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Connector/C++ v 8 and binding parameters
150
January 25, 2020 05:37AM


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.