mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Merge msvensson@bk-internal.mysql.com:/home/bk/mysql-5.0
into devsrv-b.mysql.com:/users/msvensson/mysql-5.0
This commit is contained in:
commit
8c64f803b1
1 changed files with 2 additions and 1 deletions
|
|
@ -2813,12 +2813,13 @@ static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root)
|
|||
my_ulonglong num_rows= mysql_num_rows(table_res);
|
||||
if (num_rows > 0)
|
||||
{
|
||||
ulong *lengths;
|
||||
/*
|
||||
Return first row
|
||||
TODO: Return all matching rows
|
||||
*/
|
||||
row= mysql_fetch_row(table_res);
|
||||
ulong *lengths= mysql_fetch_lengths(table_res);
|
||||
lengths= mysql_fetch_lengths(table_res);
|
||||
name= strmake_root(root, row[0], lengths[0]);
|
||||
}
|
||||
mysql_free_result(table_res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue