Re: bug in mysql client program

Re: bug in mysql client program

am 06.02.2003 14:57:29 von Sinisa Milivojevic

> --------------
>
> mysql> /*!40001 SELECT 1*/;
> ERROR:
> No query specified
>
> It seems there's definitively something wrong in the bk tree.
>
> Jocelyn
>


Thank you for your bug report, which helped us fix a bug.

This is a patch:

===== client/mysql.cc 1.112 vs edited =====
*** /tmp/mysql.cc-1.112-22771 Tue Jan 21 21:24:54 2003
--- edited/client/mysql.cc Thu Feb 6 15:51:59 2003
***************
*** 1029,1035 ****
inchar == '-' && pos[1] == '-' &&
my_isspace(system_charset_info,pos[2]))))
break; // comment to end of line
! else if (!*in_string && inchar == '/' && *(pos+1) == '*')
{
pos++;
*ml_comment= 1;
--- 1029,1035 ----
inchar == '-' && pos[1] == '-' &&
my_isspace(system_charset_info,pos[2]))))
break; // comment to end of line
! else if (!*in_string && inchar == '/' && *(pos+1) == '*' && *(pos+2) != '!')
{
pos++;
*ml_comment= 1;


For the filter:

How-to-repeat:


--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com

Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/


------------------------------------------------------------ ---------
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 bugs-thread13705@lists.mysql.com
To unsubscribe, e-mail