mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
mysql_stmt_field_count()
include/mysql.h: mysql_stmt_field_count() declaration libmysql/libmysql.c: added mysql_stmt_field_count(): we need this function to ease use of mysql_stmt_result_metadata: if mysql_stmt_field_count() != 0 mysql_stmt_result_metadata fails only if OOM. libmysql/libmysql.def: declaration for mysql_stmt_field_count()
This commit is contained in:
@ -2598,6 +2598,16 @@ my_ulonglong STDCALL mysql_stmt_affected_rows(MYSQL_STMT *stmt)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Returns the number of result columns for the most recent query
|
||||
run on this statement.
|
||||
*/
|
||||
|
||||
unsigned int STDCALL mysql_stmt_field_count(MYSQL_STMT *stmt)
|
||||
{
|
||||
return stmt->field_count;
|
||||
}
|
||||
|
||||
/*
|
||||
Return last inserted id for auto_increment columns
|
||||
*/
|
||||
|
Reference in New Issue
Block a user