MXS-1621: Add ALTER TABLE ... [FIRST | AFTER col ] parsing

The parser checks whether the FIRST or AFTER keywords are used and, if
AFTER is used, extracts the relevant column name.

Added a test case that checks that the parsing works and detects the
correct column names.
This commit is contained in:
Markus Mäkelä
2018-01-25 11:39:03 +02:00
parent f9cc2d5bbb
commit 8dfb1d0113
5 changed files with 212 additions and 2 deletions

View File

@ -0,0 +1,3 @@
add_executable(test_alter_parsing test_alter_parsing.c)
target_link_libraries(test_alter_parsing maxscale-common ${JANSSON_LIBRARIES} ${AVRO_LIBRARIES} maxavro sqlite3 lzma)
add_test(test_alter_parsing test_alter_parsing)