4 messages in com.mysql.lists.bugsRe: sql_yacc errors compiling 4.0.2
FromSent OnAttachments
Dean Ellis17 Feb 2002 07:43 
Michael Widenius18 Feb 2002 09:05 
Dean Ellis18 Feb 2002 09:50 
Sinisa Milivojevic19 Feb 2002 04:45 
Subject:Re: sql_yacc errors compiling 4.0.2
From:Dean Ellis (de@deanellis.com)
Date:02/18/2002 09:50:03 AM
List:com.mysql.lists.bugs

How-to-Repeat: etc

On Mon, 2002-02-18 at 11:06, Michael Widenius wrote:

Which compiler are you using?

gcc 2.95.4 under Linux 2.4.17.

Can you please copy a couple of the error messages in a new email, together with the offending lines in sql_yacc.yy (just so that we can ensure that we are looking at the same code)

The semi-colon issues were all "Parse Error before '}' on line " 787, 1617, 1883, 1931, 1956, 2034, 2640, 2839, 3081.

Each of these lines either did not have a semi-colon before the brace, or had one after the brace.

787: | table_option table_options { $$= $1 | $2 }

2839: | HEX_NUM { $$ = new Item_varbinary($1.str,$1.length)};

And I would simply add a semicolon if one was not present, or move it inside the braces if it was outside them.