mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #10947 mysqlshow wildcard failure on Windows
This commit is contained in:
@ -447,7 +447,7 @@ list_tables(MYSQL *mysql,const char *db,const char *table)
|
|||||||
We just hijack the 'rows' variable for a bit to store the escaped
|
We just hijack the 'rows' variable for a bit to store the escaped
|
||||||
table name
|
table name
|
||||||
*/
|
*/
|
||||||
mysql_escape_string(rows, table, sizeof(rows));
|
mysql_real_escape_string(mysql, rows, table, (unsigned long)strlen(table));
|
||||||
my_snprintf(query, sizeof(query), "show%s tables like '%s'",
|
my_snprintf(query, sizeof(query), "show%s tables like '%s'",
|
||||||
opt_table_type ? " full" : "", rows);
|
opt_table_type ? " full" : "", rows);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user