Commit ad98f96d authored by Anel Husakovic's avatar Anel Husakovic

MDEV-24598: duplicate CHECK constraint name

- For `Debug` release add options to bison:
  - `-v` to generate `sql_yacc.output`,
  - `--report=itemsets,lookaheads` to inspect better diagnostic)
parent 1f1f61a9
...@@ -350,10 +350,13 @@ IF (NOT BISON_FOUND) ...@@ -350,10 +350,13 @@ IF (NOT BISON_FOUND)
MESSAGE(FATAL_ERROR ${ERRMSG}) MESSAGE(FATAL_ERROR ${ERRMSG})
ENDIF() ENDIF()
ELSE() ELSE()
IF (${CMAKE_BUILD_TYPE} MATCHES Debug)
SET(bison_debug_options "--report=itemsets,lookaheads -v")
ENDIF()
BISON_TARGET(gen_sql_yacc ${CMAKE_CURRENT_SOURCE_DIR}/sql_yacc.yy ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc.cc BISON_TARGET(gen_sql_yacc ${CMAKE_CURRENT_SOURCE_DIR}/sql_yacc.yy ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc.cc
COMPILE_FLAGS "-p MYSQL") COMPILE_FLAGS "-p MYSQL ${bison_debug_options}")
BISON_TARGET(gen_sql_yacc_ora ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.yy ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.cc BISON_TARGET(gen_sql_yacc_ora ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.yy ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.cc
COMPILE_FLAGS "-p ORA") COMPILE_FLAGS "-p ORA ${bison_debug_options}")
ENDIF() ENDIF()
IF(NOT CMAKE_CROSSCOMPILING) IF(NOT CMAKE_CROSSCOMPILING)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment