On Sun, 16 Jun 2002 [EMAIL PROTECTED] wrote:
> Hi,
>
> I tried something like the following (MySQL 3.23.36 on RH7.1) and got
> the error indicated below.
>
> create table product ( /* The main table -- see below... */
> id int not null auto_increment, /* some text here */
<snip>
>
> ERROR 1072: Key column 'id' doesn't exist in table
>
>
> The problem is _avoided_ by removing the double-hyphen from the first
> comment in the above example. So, it's okay if I do the following
> instead (where I've *only* removed a single hyphen in the first
> comment): -
>
> create table product ( /* The main table - see below... */
> id int not null auto_increment, /* some text here */
<snip>
>
> So, either I've missed something about the meaning of "--" inside a
> comment, or there's a syntactic problem, maybe in the MySQL client,
> coz that's where I was doing my (interactive) testing.
>
> This isn't a problem for me (now I've figured it out), but thought
> I'd mention it anyway -- if you want more comment from me then please
> email me directly as I'm not reading the List at the moment.
>
>
> --
> Cheers,
> James.
>
There is definitely something wrong with the parser. The '--' should not be
interpreted as a single line comment, causing the first '*/' to be ignored,
so the the entry for the 'id' column is considered to be part of the
multi-line comment until the '*/' at the end of the line is encountered.
Have you filed a bug report?
I noticed the sender is '[EMAIL PROTECTED]'; is this your (James')
actual address or a group address?
---------------------------------------------------------------------
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 <mysql-unsubscribe-##L=##[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php