diff options
author | msvensson@devsrv-b.mysql.com <> | 2006-02-15 13:45:03 +0100 |
---|---|---|
committer | msvensson@devsrv-b.mysql.com <> | 2006-02-15 13:45:03 +0100 |
commit | eb978186277614960d82c1924449b9806655768a (patch) | |
tree | 6bcd658b60445fde0f370a9e51708343e86aac6b /libmysql | |
parent | 42cc473df324e17907db29f9a85ecd0e32100f9a (diff) | |
download | mariadb-git-eb978186277614960d82c1924449b9806655768a.tar.gz |
Bug#16143 mysql_stmt_sqlstate returns an empty string instead of '00000'
- Init sql_state in mysql_stmt_init
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 9825f1ecdfa..3ff4cfb4c50 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -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); |