summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-09-17 07:56:56 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-05 15:01:59 +0400
commit9f6aca198c9d580c310630dcf3f545647bb49368 (patch)
tree65f6798d345124400eda0ff797583ea7b131483e /cmake
parente34acc838b6f8ce4c84c28d6f65c463f831a9ef9 (diff)
downloadmariadb-git-9f6aca198c9d580c310630dcf3f545647bb49368.tar.gz
Adding an alternative grammar file sql_yacc_ora.yy for sql_mode=ORACLE
- Adding a new grammar file sql_yacc_ora.yy, which is currently almost a full copy of sql_yacc.yy. Note, it's now assumed that sql_yacc.yy and sql_yacc_ora.yy use the same set of %token directives and exactly the same %union directive. These declarations should eventually be moved into a shared included file, to make sure that sql_yacc.h and sql_yacc_ora.h are compatible. - Removing the "-p MYSQL" flag from cmake/bison.cmake, using the %name-prefix directive inside sql_yacc.yy and sql_yacc_ora.yy instead - Adding other CMake related changes to build sql_yacc_ora.o form sql_yacc_ora.yy - Adding NUMBER(M,N) as a synonym to DECIMAL(M,N) as the first Oracle compatibility syntax understood in sql_mode=ORACLE. - Adding prototypes to functions add_virtual_expression() and handle_sql2003_note184_exception(), so they can be used in both sql_yacc.yy and sql_yacc_ora.yy. - Adding a new test suite compat/oracle, with the first test "type_number". Use this: ./mtr compat/oracle.type_number # to run a single test ./mtr --suite=compat/oracle # to run the entire new suite - Adding compat/oracle into the list of default suites, so BuildBot can run it automatically on pushes.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/bison.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/bison.cmake b/cmake/bison.cmake
index d5c725fbbde..9651fe70cbb 100644
--- a/cmake/bison.cmake
+++ b/cmake/bison.cmake
@@ -50,7 +50,7 @@ MACRO (RUN_BISON input_yy output_cc output_h)
ADD_CUSTOM_COMMAND(
OUTPUT ${output_cc}
${output_h}
- COMMAND ${BISON_EXECUTABLE} -y -p MYSQL
+ COMMAND ${BISON_EXECUTABLE} -y
--output=${output_cc}
--defines=${output_h}
${input_yy}