MXS-1475 Add SetParser custom parser

SetParser is capable of returning the exact variable and value
of a "SET X=Y" statement, in the cases where X is of a specific
set of variables; currently "SQL_MODE" and "@MAXSCALE...".

The actual value of the SET statement also needs to be parsed in
the case of SQL_MODE, but it becomes unnecessary convoluted if that
information somehow should conditionally be expressable in a return
value.

So, the value will be parsed separately.
This commit is contained in:
Johan Wikman
2018-02-25 20:38:25 +02:00
parent 2be576da31
commit f11d60420d
3 changed files with 1038 additions and 1 deletions

View File

@ -1,4 +1,8 @@
add_executable(test_setparser test_setparser.cc)
add_executable(test_setsqlmodeparser test_setsqlmodeparser.cc)
target_link_libraries(test_setsqlmodeparser maxscale-common)
target_link_libraries(test_setsqlmodeparser maxscale-common)
target_link_libraries(test_setparser maxscale-common)
add_test(test_setparser test_setarser)
add_test(test_setsqlmodeparser test_setsqlmodeparser)