Fix: the information returned by bison execution is not printed correctly (#764)
This commit is contained in:
		@ -19,9 +19,10 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# generate sql_parser
 | 
					# 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
 | 
					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
 | 
					then
 | 
				
			||||||
    echo Compile error[$?], abort.
 | 
					    echo Compile error[$BISON_RETURN], abort.
 | 
				
			||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
fi
 | 
					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
 | 
					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
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user