mariadb_stmt_execute_direct
mariadb_stmt_execute_direct prepares and executes a statement in a single call using a pre-allocated MYSQL_STMT handle, available in Connector/C 3.0 and later.
Syntax
int mariadb_stmt_execute_direct(MYSQL_STMT * stmt, const char *query, size_t length);Parameters
stmt- A statement handle, which was previously allocated by mysql_stmt_init().querySQL statementlengthLength of SQL statement
Description
Prepares and executes a statement which was previously allocated by mysql_stmt_init(), using the current values of the parameter variables if any parameters exist in the statement.
Returns zero on success, non-zero on failure.
This function was added in Connector/C 3.0 and requires MariaDB Server.
See Also
Example
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

