未验证 提交 d545b1e4 编写于 作者: B BraveLz 提交者: GitHub

Fix: the information returned by bison execution is not printed correctly (#764)

上级 aa8ef6a0
......@@ -19,9 +19,10 @@ fi
# generate sql_parser
bison -v -Werror -d ../../../src/sql/parser/sql_parser_mysql_mode.y -o ../../../src/sql/parser/sql_parser_mysql_mode_tab.c
if [ $? -ne 0 ]
BISON_RETURN="$?"
if [ $BISON_RETURN -ne 0 ]
then
echo Compile error[$?], abort.
echo Compile error[$BISON_RETURN], abort.
exit 1
fi
flex -Cfa -B -8 -o ../../../src/sql/parser/sql_parser_mysql_mode_lex.c ../../../src/sql/parser/sql_parser_mysql_mode.l ../../../src/sql/parser/sql_parser_mysql_mode_tab.h
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册