diff options
author | holyfoot@mysql.com <> | 2006-01-19 18:05:57 +0400 |
---|---|---|
committer | holyfoot@mysql.com <> | 2006-01-19 18:05:57 +0400 |
commit | 53a379d041f944c858280e24a2ba825ddf465189 (patch) | |
tree | 0c5df31a98305c1cfd75da28b7efa727365ffeef /sql-common | |
parent | 9a6bad5951922d922eebdc0d088e070d8697736a (diff) | |
parent | c03d0250021c88ad3bdabd882c0699e150c7b897 (diff) | |
download | mariadb-git-53a379d041f944c858280e24a2ba825ddf465189.tar.gz |
Merge bk@192.168.21.1:mysql-5.1-new into mysql.com:/home/hf/work/5.1.emb
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 4c2debd41ff..8e55cf7c2b7 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1545,7 +1545,8 @@ static MYSQL_METHODS client_methods= NULL, cli_read_statistics, cli_read_query_result, - cli_read_change_user_result + cli_read_change_user_result, + cli_read_binary_rows #endif }; @@ -2339,8 +2340,9 @@ static void mysql_close_free(MYSQL *mysql) my_free(mysql->user,MYF(MY_ALLOW_ZERO_PTR)); my_free(mysql->passwd,MYF(MY_ALLOW_ZERO_PTR)); my_free(mysql->db,MYF(MY_ALLOW_ZERO_PTR)); + my_free(mysql->info_buffer,MYF(MY_ALLOW_ZERO_PTR)); /* Clear pointers for better safety */ - mysql->host_info=mysql->user=mysql->passwd=mysql->db=0; + mysql->info_buffer=mysql->host_info=mysql->user=mysql->passwd=mysql->db=0; } @@ -2476,8 +2478,7 @@ get_info: if (!(mysql->server_status & SERVER_STATUS_AUTOCOMMIT)) mysql->server_status|= SERVER_STATUS_IN_TRANS; - if (!(fields=(*mysql->methods->read_rows)(mysql,(MYSQL_FIELD*)0, - protocol_41(mysql) ? 7 : 5))) + if (!(fields=cli_read_rows(mysql,(MYSQL_FIELD*)0, protocol_41(mysql) ? 7:5))) DBUG_RETURN(1); if (!(mysql->fields=unpack_fields(fields,&mysql->field_alloc, (uint) field_count,0, |