mysql_stmt_init - Man Page

Name

mysql_stmt_init - Initializes a prepared statement handle

Synopsis

#include <mysql.h>

MYSQL_STMT * mysql_stmt_init(MYSQL * mysql);

Description

Initializes and allocates memory for a prepared statement.

Parameter

Return value

Returns a pointer to a MYSQL_STMT structure or NULL if an error occurred.

Notes

  • Members of the MYSQL_STMT structure are not intended for application use.
  • A statement handle which was allocated by mysql_stmt_init() needs to be freed with mysql_stmt_close(3).
  • Any subsequent calls to any mysql_stmt function will fail until mysql_stmt_prepare(3) was called.

See Also

Referenced By

mariadb_stmt_execute_direct(3), mariadb_stmt_fetch_fields(3), mysql_stmt_attr_get(3), mysql_stmt_attr_set(3), mysql_stmt_bind_param(3), mysql_stmt_bind_result(3), mysql_stmt_close(3), mysql_stmt_data_seek(3), mysql_stmt_errno(3), mysql_stmt_error(3), mysql_stmt_execute(3), mysql_stmt_fetch(3), mysql_stmt_fetch_column(3), mysql_stmt_field_count(3), mysql_stmt_free_result(3), mysql_stmt_insert_id(3), mysql_stmt_num_rows(3), mysql_stmt_param_count(3), mysql_stmt_param_metadata(3), mysql_stmt_prepare(3), mysql_stmt_reset(3), mysql_stmt_result_metadata(3), mysql_stmt_row_seek(3), mysql_stmt_row_tell(3), mysql_stmt_send_long_data(3), mysql_stmt_sqlstate(3), mysql_stmt_store_result(3), mysql_stmt_warning_count(3).

Version 3.4 MariaDB Connector/C