MySQL Forums
Forum List  »  Connector/C++

Re: Connector 1.1.19 cpp
Posted by: Luis Silva
Date: January 25, 2020 05:20AM

Hi Jean,

Normally, we follow rule of using same name as libmysqlclient option, but without MYSQL_ prefix, so it would be:

int read_timeout = 1000;
con->setClientOption("OPT_READ_TIMEOUT", &read_timeout);

For options information and also type information each expect, please check:
https://dev.mysql.com/doc/refman/8.0/en/mysql-options.html

Cheers,
Luís

Options: ReplyQuote


Subject
Views
Written By
Posted
780
January 25, 2020 04:16AM
Re: Connector 1.1.19 cpp
463
January 25, 2020 05:20AM
345
January 26, 2020 02:09AM
420
January 28, 2020 06:28AM
411
January 28, 2020 10:50AM


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.