diff options
author | unknown <igor@olga.mysql.com> | 2007-08-16 17:22:50 -0700 |
---|---|---|
committer | unknown <igor@olga.mysql.com> | 2007-08-16 17:22:50 -0700 |
commit | 59a11546753422b7c5c256f26c313a0396dbbb6b (patch) | |
tree | 8df9e6e80c1b71015982942c7f7276fc5b2c4160 /libmysql | |
parent | fae4347f88824e956281511d5679f1610202b604 (diff) | |
parent | a8f8e5483e7925ce804c3900752f88fdf43cb3ee (diff) | |
download | mariadb-git-59a11546753422b7c5c256f26c313a0396dbbb6b.tar.gz |
Merge olga.mysql.com:/home/igor/dev-opt/mysql-5.0-opt-bug30396
into olga.mysql.com:/home/igor/dev-opt/mysql-5.1-opt-bug30396
libmysql/libmysql.c:
Auto merged
mysql-test/r/select.result:
Auto merged
mysql-test/t/select.test:
Auto merged
sql/item_cmpfunc.h:
Auto merged
sql/sql_base.cc:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/sql_lex.h:
Auto merged
sql/sql_select.cc:
Auto merged
tests/mysql_client_test.c:
Manual merge
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index b2f59ba2a5a..95ac45f40c4 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -4673,9 +4673,17 @@ int cli_read_binary_rows(MYSQL_STMT *stmt) MYSQL *mysql= stmt->mysql; MYSQL_DATA *result= &stmt->result; MYSQL_ROWS *cur, **prev_ptr= &result->data; - NET *net = &mysql->net; + NET *net; + + if (!mysql) + { + set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate); + return 1; + } + DBUG_ENTER("cli_read_binary_rows"); + net = &mysql->net; mysql= mysql->last_used_con; while ((pkt_len= cli_safe_read(mysql)) != packet_error) |