Search Results
https://dev.mysql.com/doc/c-api/9.7/en/mysql-autocommit.html
bool mysql_autocommit(MYSQL *mysql, bool mode) Description Sets autocommit mode on if mode is 1, off if mode is 0.
https://dev.mysql.com/doc/c-api/9.7/en/mysql-binlog-fetch.html
Errors Example See Section 10.4, “C API Binary Log Function Descriptions”. int mysql_binlog_fetch(MYSQL *mysql, MYSQL_RPL *rpl) Description Fetch one event from the replication event stream. After a successful call, the size member indicates ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-binlog-open.html
Errors CR_FILE_NAME_TOO_LONG The specified binary log file name was too long. int mysql_binlog_open(MYSQL *mysql, MYSQL_RPL *rpl) Description Open a new replication event stream, to read a MySQL server binary log. rpl: A MYSQL_RPL structure that ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-commit.html
The action of this function is subject to the value of the completion_type system variable. In particular, if the value of completion_type is RELEASE (or 2), the server performs a release after terminating a transaction and closes the client ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-fetch-lengths.html
Errors mysql_fetch_lengths() is valid only for the current row of the result set. unsigned long * mysql_fetch_lengths(MYSQL_RES *result) Description Returns the lengths of the columns of the current row within a result set. If you plan to copy ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-get-option.html
Nonzero if an error occurred; this occurs for option values that cannot be queried. int mysql_get_option(MYSQL *mysql, enum mysql_option option, const void *arg) Description Returns the current value of an option settable using mysql_options(). The ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-get-ssl-session-data.html
void * mysql_get_ssl_session_data(MYSQL *, unsigned int n_ticket, unsigned int *out_len) Description mysql_get_ssl_session_data() permits SSL session reuse by extracting a ticket from an established session and submitting that ticket when ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-hex-string.html
unsigned long mysql_hex_string(char *to, const char *from, unsigned long length) Description This function creates a legal SQL string for use in an SQL statement. The string in the from argument is encoded in hexadecimal format, with each character ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-insert-id.html
If the previous statement returned an error, the value of mysql_insert_id() is undefined. Errors ER_AUTO_INCREMENT_CONFLICT A user-specified AUTO_INCREMENT value in a multi INSERT statement falls within the range between the current AUTO_INCREMENT ... uint64_t mysql_insert_id(MYSQL *mysql) Description Returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-plugin-get-option.html
If the plugin does not have an option handler, an error occurs. int mysql_plugin_get_option(struct st_mysql_client_plugin *plugin, const char *option, void *value) Description Given a plugin structure and an option name, returns the option value.