Merge branch '2.2' into develop

This commit is contained in:
Johan Wikman
2018-09-10 12:29:00 +03:00
63 changed files with 226 additions and 226 deletions

View File

@ -19,19 +19,19 @@ int main(int argc, char** argv)
};
auto ok = [&](string q) {
test.assert(query(q),
test.expect(query(q),
"Query '%s' should work: %s",
q.c_str(),
mysql_error(test.maxscales->conn_rwsplit[0]));
};
auto err = [&](string q) {
test.assert(!query(q), "Query should not work: %s", q.c_str());
test.expect(!query(q), "Query should not work: %s", q.c_str());
};
auto check = [&](string q, string res) {
Row row = get_row(test.maxscales->conn_rwsplit[0], q.c_str());
test.assert(!row.empty() && row[0] == res,
test.expect(!row.empty() && row[0] == res,
"Query '%s' should return 1: %s (%s)",
q.c_str(),
row.empty() ? "<empty>" : row[0].c_str(),