MySQL 8.0 C API Developer Guide
MYSQL_STMT * mysql_stmt_init(MYSQL *mysql)
Creates and returns a MYSQL_STMT
handler.
The handler should be freed with
mysql_stmt_close()
, at which
point the handler becomes invalid and should no longer be
used.
See also Chapter 9, C API Prepared Statement Data Structures, for more information.
Out of memory.