From b45bf71d9b3fad1fc48267d58bd8425945aa4244 Mon Sep 17 00:00:00 2001 From: "reggie@mdk10.(none)" <> Date: Fri, 10 Jun 2005 14:03:22 -0500 Subject: [PATCH] Bug #10947 mysqlshow wildcard failure on Windows --- client/mysqlshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }