diff options
author | unknown <lars@mysql.com> | 2005-03-16 08:14:05 +0100 |
---|---|---|
committer | unknown <lars@mysql.com> | 2005-03-16 08:14:05 +0100 |
commit | 83a242a092a9baabe1c93890d8d2f980c931c51b (patch) | |
tree | af086d2662d18c65a7fc9a4ebcc48bb3a25f83f7 /client | |
parent | 32e027ead7d65976dfcfaa95b7fa325a73783701 (diff) | |
parent | 0e802637ccd18f1e237b43416b4855bfab93d745 (diff) | |
download | mariadb-git-83a242a092a9baabe1c93890d8d2f980c931c51b.tar.gz |
Merge mysql.com:/home/bkroot/mysql-4.1 into mysql.com:/home/bk/b9123-4.1
client/mysqldump.c:
Auto merged
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqldump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index fa36ce0242d..8df17ace780 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -2110,7 +2110,9 @@ static void get_actual_table_name(const char *old_table_name, char query[ NAME_LEN + 50 ]; DBUG_ENTER("get_actual_table_name"); - sprintf( query, "SHOW TABLES LIKE '%s'", old_table_name); + char show_name_buff[FN_REFLEN]; + sprintf(query, "SHOW TABLES LIKE %s", + quote_for_like(old_table_name, show_name_buff)); if (mysql_query_with_error_report(sock, 0, query)) { safe_exit(EX_MYSQLERR); |