Fix ALTER TABLE regression in avrorouter

The avrorouter failed to detect ALTER TABLE statements which caused a
regression. Extended the alter table tests to parse the JSON for more
strict validation of test results.
This commit is contained in:
Markus Mäkelä
2017-07-04 09:31:11 +03:00
parent 26bbac6ea5
commit 285086ba7c
3 changed files with 20 additions and 9 deletions

View File

@ -1052,14 +1052,14 @@ void handle_query_event(AVRO_INSTANCE *router, REP_HEADER *hdr, int *pending_tra
bool combine = (strnlen(db, 1) && strchr(ident, '.') == NULL);
size_t len = strlen(ident) + 1; // + 1 for the NULL
size_t ident_len = strlen(ident) + 1; // + 1 for the NULL
if (combine)
{
len += (strlen(db) + 1); // + 1 for the "."
ident_len += (strlen(db) + 1); // + 1 for the "."
}
char full_ident[len];
char full_ident[ident_len];
full_ident[0] = 0; // Set full_ident to "".
if (combine)