MXS-1275: Add custom parser for "SET SQL_MODE=..."

SetSqlModeParser is a custom parser for detecting "SET SQL_MODE=..."
statements. It will be used in mysql_client and the result will be
used for updating the sql_mode of a session (that is to be added).

Thereafter, whenever a statement arrives, the value of that sql_mode
will be used for setting the mode of the query_classifier.
This commit is contained in:
Johan Wikman
2017-05-30 17:06:59 +03:00
parent 04cae711f6
commit ee27efd62e
4 changed files with 798 additions and 0 deletions

View File

@ -2,3 +2,7 @@ add_library(MySQLClient SHARED mysql_client.cc)
target_link_libraries(MySQLClient maxscale-common MySQLCommon)
set_target_properties(MySQLClient PROPERTIES VERSION "1.0.0")
install_module(MySQLClient core)
if(BUILD_TESTS)
add_subdirectory(test)
endif()