Oups, sorry that wasn't not the right modification.
The right modification are those one :
At line 1617 :
- | CASE_SYM opt_expr WHEN_SYM when_list opt_else END
{ $$= new Item_func_case(* $4, $2, $5 ) }
+ | CASE_SYM opt_expr WHEN_SYM when_list opt_else END
{ $$= new Item_func_case(* $4, $2, $5 ); }
At line 1883 :
- in_sum_expr:
{ Select->in_sum_expr++ }
+ in_sum_expr:
{ Select->in_sum_expr++; }
At line 1956 :
- | join_table_list normal_join join_table { $$=$3 }
+ | join_table_list normal_join join_table { $$=$3; }
(the unsigned int yystacksize still remains to be fixed has I noticed in the
SCCS/s.sql_yacc.yy files)
I switch back the bison 1.28 ;)
Regards,
Jocelyn Fournier
----- Original Message -----
From: "Fournier Jocelyn [Presence-PC]" <joc@stripped>
To: <internals@stripped>
Sent: Sunday, March 03, 2002 6:37 PM
Subject: Problem with sql_yacc.yy
> Hi,
>
> I cannot compile the latest version of mysql-4.0.2 because of problem in
> sql_yacc.yy.
>
> I solve the problem in modifying the following line :
>
> opt_table_options:
>
> /* empty */ { $$= 0; }
>
> - | table_options { $$= $1;}
>
> + | table_options { $$= $1; }
>
> create_table_option:
>
> TYPE_SYM EQ table_types { Lex->create_info.db_type= $3; }
>
> - | MAX_ROWS EQ ulonglong_num { Lex->create_info.max_rows= $3;
> Lex->create_info.used_fields|= HA_CREATE_USED_MAX_ROWS;}
>
> + | MAX_ROWS EQ ulonglong_num { Lex->create_info.max_rows= $3;
> Lex->create_info.used_fields|= HA_CREATE_USED_MAX_ROWS; }
>
> - | MIN_ROWS EQ ulonglong_num { Lex->create_info.min_rows= $3;
> Lex->create_info.used_fields|= HA_CREATE_USED_MIN_ROWS;}
>
> + | MIN_ROWS EQ ulonglong_num { Lex->create_info.min_rows= $3;
> Lex->create_info.used_fields|= HA_CREATE_USED_MIN_ROWS; }
>
> (missing space between semicolon and brace)
>
> Now it works fine.
>
> Regards,
>
> Jocelyn Fournier
>
>
>
> ---------------------------------------------------------------------
> 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 internals-thread2974@stripped
> To unsubscribe, e-mail <internals-unsubscribe@stripped>
>
>