diff options
author | unknown <reggie@mdk10.(none)> | 2005-06-10 14:03:22 -0500 |
---|---|---|
committer | unknown <reggie@mdk10.(none)> | 2005-06-10 14:03:22 -0500 |
commit | c2c0d6530f67941c3b49bec946956d50ede87487 (patch) | |
tree | a06e63c09096a2eb676edf2d86e0483f61f71b3d /client/mysqlshow.c | |
parent | baae624cdbdec0cc1342f02a205d32b07f096011 (diff) | |
download | mariadb-git-c2c0d6530f67941c3b49bec946956d50ede87487.tar.gz |
Bug #10947 mysqlshow wildcard failure on Windows
client/mysqlshow.c:
change to using mysql_real_escape_string
Also, passing in length of from string "table" instead of to string "rows"
Diffstat (limited to 'client/mysqlshow.c')
-rw-r--r-- | client/mysqlshow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqlshow.c b/client/mysqlshow.c index 85c8f123082..ca29d2d4459 100644 --- a/client/mysqlshow.c +++ b/client/mysqlshow.c @@ -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 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'", opt_table_type ? " full" : "", rows); } |