Search Results
https://dev.mysql.com/doc/c-api/8.4/en/c-api-binary-log-interface-usage.html
The initial SET statement sets the @source_binlog_checksum user-defined variable that the server takes as an indication that the client is checksum-aware. This client does nothing with checksums, but without this statement, a server that includes ...
https://dev.mysql.com/doc/c-api/8.4/en/c-api-function-descriptions.html
This section describes C API functions other than those used for prepared statements, the asynchronous interface, or the replication stream interface. For information about those, see Section 6.4, “C API Prepared Statement Function ...In the ...
https://dev.mysql.com/doc/c-api/8.4/en/c-api-introduction.html
This size check is mostly a precaution against erroneous statements and communication packets. The communication buffer must be large enough to contain a single SQL statement (for client-to-server traffic) and one row of returned data (for ... The C ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-field-count.html
This enables the client program to take proper action without knowing whether the query was a SELECT (or SELECT-like) statement. In this case, you are checking directly for an error from mysql_store_result() rather than inferring from the value of ... unsigned int mysql_field_count(MYSQL *mysql) Description Returns the number of columns for the most recent query on the ...
https://dev.mysql.com/doc/c-api/8.4/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 return value can be placed into an SQL statement using either X'value' or 0xvalue ...The string in the from argument is encoded in hexadecimal format, with each character encoded as two hexadecimal ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-list-fields.html
Instead, use mysql_real_query() or mysql_query() to execute a SHOW COLUMNS statement. MYSQL_RES * mysql_list_fields(MYSQL *mysql, const char *table, const char *wild) Description Note mysql_list_fields() is deprecated and is subject to removal in a ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-num-rows.html
mysql_num_rows() is intended for use with statements that return a result set, such as SELECT. For statements such as INSERT, UPDATE, or DELETE, the number of affected rows can be obtained with mysql_affected_rows(). uint64_t ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-reset-connection.html
Reinitializes session system variables to the values of the corresponding global system variables, including system variables that are set implicitly by statements such as SET NAMES. int mysql_reset_connection(MYSQL *mysql) Description Resets the ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-set-local-infile-handler.html
void mysql_set_local_infile_handler(MYSQL *mysql, int (*local_infile_init)(void **, const char *, void *), int (*local_infile_read)(void *, char *, unsigned int), void (*local_infile_end)(void *), int (*local_infile_error)(void *, char*, unsigned ...It enables application programs to exert control over local (client-side) data file ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-shutdown.html
An alternative to mysql_shutdown() is to use the SHUTDOWN SQL statement. int mysql_shutdown(MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level) Description Note mysql_shutdown() is deprecated and will be removed in a future version of ...