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

@ -6,6 +6,10 @@ if(AVRO_FOUND AND JANSSON_FOUND)
set_target_properties(avrorouter PROPERTIES LINK_FLAGS -Wl,-z,defs)
target_link_libraries(avrorouter maxscale-common ${JANSSON_LIBRARIES} ${AVRO_LIBRARIES} maxavro sqlite3 lzma)
install_module(avrorouter core)
if (BUILD_TESTS)
add_subdirectory(test)
endif()
else()
message(STATUS "No Avro C or Jansson libraries found, not building avrorouter.")
endif()