1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Bug#16143 mysql_stmt_sqlstate returns an empty string instead of '00000'

- Init sql_state in mysql_stmt_init
This commit is contained in:
msvensson@devsrv-b.mysql.com
2006-02-15 13:45:03 +01:00
parent 42cc473df3
commit eb97818627
2 changed files with 17 additions and 0 deletions

View File

@ -2008,6 +2008,7 @@ mysql_stmt_init(MYSQL *mysql)
stmt->mysql= mysql;
stmt->read_row_func= stmt_read_row_no_result_set;
stmt->prefetch_rows= DEFAULT_PREFETCH_ROWS;
strmov(stmt->sqlstate, not_error_sqlstate);
/* The rest of statement members was bzeroed inside malloc */
DBUG_RETURN(stmt);