summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-02-15 20:16:33 +0100
committerunknown <msvensson@neptunus.(none)>2006-02-15 20:16:33 +0100
commit2974245c2170c49362d2bde51386f8c4a393ea40 (patch)
tree536bb54eb4bdbde74a31e5c0eacacd05d658d382 /libmysql
parent02091fd59b829177922c0a68f92ce300f68d0f2d (diff)
parent5d6985c4a1ac64f9fbeaf861b22d0bbdbeb8cb21 (diff)
downloadmariadb-git-2974245c2170c49362d2bde51386f8c4a393ea40.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0 libmysql/libmysql.c: Auto merged tests/mysql_client_test.c: Auto merged
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 7a492e50034..37566b2dfaa 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);