diff options
author | unknown <pem@mysql.comhem.se> | 2003-11-27 16:48:21 +0100 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2003-11-27 16:48:21 +0100 |
commit | 919b5ba6b5c04bbad477a7722d67213953223cf8 (patch) | |
tree | 3a86abe034e95159e4c892c732cf94688e9f0710 /sql/net_serv.cc | |
parent | 35eca8e13d56ab4e4dc54b52d0b8b0d4270aceb1 (diff) | |
download | mariadb-git-919b5ba6b5c04bbad477a7722d67213953223cf8.tar.gz |
Fixed BUG#1965: Opening a cursor hangs client when malformed select fails
and BUG#1966: "select 1 into a" on top-level hangs client
include/mysql_com.h:
Added no_send_eof flag to NET for SP cursors (the simple read-only version).
mysql-test/r/sp-error.result:
Added tests for BUG#1965 and BUG#1966.
mysql-test/t/sp-error.test:
Added tests for BUG#1965 and BUG#1966.
sql/net_serv.cc:
Added no_send_eof flag to NET for SP cursors (the simple read-only version).
sql/protocol.cc:
Added no_send_eof flag to NET for SP cursors (the simple read-only version).
sql/sp_rcontext.cc:
Use net->no_send_eof flag to prevent eofs during cursor open (instead of
the dirty vio=0 which didn't work).
sql/sp_rcontext.h:
Use net->no_send_eof flag to prevent eofs during cursor open (instead of
the dirty vio=0 which didn't work).
sql/sql_yacc.yy:
Give error message if doing SELECT ... INTO localvar even if it's outside an SP.
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 7944a528b83..0120ad80c0a 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -123,6 +123,7 @@ my_bool my_net_init(NET *net, Vio* vio) net->buff_end=net->buff+net->max_packet; net->vio = vio; net->no_send_ok = 0; + net->no_send_eof = 0; net->error=0; net->return_errno=0; net->return_status=0; net->pkt_nr=net->compress_pkt_nr=0; net->write_pos=net->read_pos = net->buff; |