Guy,
Saturday, October 26, 2002, 10:42:43 PM, you wrote:

GC> When trying to check/repair/analaiz a table with a name like 'table-name'
GC> mysqlcheck (from source package 3.23.53) fails with:
GC> mysqlcheck: Got error: 1064: You have an error in your SQL syntax near '-name'
GC> at line 1 when executing 'CHECK TABLE ...

GC> Here's the patch for it:

GC> --- mysqlcheck.old      Sat Oct 26 11:37:49 2002
GC> +++ mysqlcheck.c        Sat Oct 26 11:35:12 2002
GC> @@ -521,7 +521,7 @@

GC>    if (!(query =(char *) my_malloc((sizeof(char)*(length+110)), MYF(MY_WME))))
GC>      return 1;
GC> -  sprintf(query, "%s TABLE %s %s", op, tables, options);
GC> +  sprintf(query, "%s TABLE `%s` %s", op, tables, options);
GC>    if (mysql_query(sock, query))
GC>    {
GC>      sprintf(message, "when executing '%s TABLE ... %s", op, options);

Thanks for the report! It will be fixed.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to