diff options
author | holyfoot@deer.(none) <> | 2006-01-04 14:20:28 +0400 |
---|---|---|
committer | holyfoot@deer.(none) <> | 2006-01-04 14:20:28 +0400 |
commit | e8697cf428e59bc14e69d5b1ce1569b8d42e02d9 (patch) | |
tree | bcb306f8c631b6b3153296059aae11b7e290ded7 /sql-common | |
parent | 795f744c5f1ba2d427128a7ecd3e12f1fe3cc0ff (diff) | |
download | mariadb-git-e8697cf428e59bc14e69d5b1ce1569b8d42e02d9.tar.gz |
Big patch to make embedded-server working in 5.x
Now it supports queries returning several results
(particularly important with the SP)
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, |