MXS-2131: Add sanity check test

The sanity check replaces several old regression tests and provides a
quick test for checking mainly the readwritesplit routing behavior. It
also checks some of the connection counts and runs queries that once
caused a crash.

The set of tests that the sanity check obsoletes is:

    bug422
    bug469
    bug448
    bug507
    bug509
    bug634
    bug694
    bug669
    bug711
    mxs127
    mxs47
    mxs682_cyrillic
    mxs957
    mxs1786_statistics
    rwsplit_read_only_trx
This commit is contained in:
Markus Mäkelä
2018-10-31 12:03:25 +02:00
parent 6497c1f5b3
commit ee069ac45c
3 changed files with 136 additions and 2 deletions

View File

@ -323,10 +323,10 @@ public:
return get_row(m_conn, q);
}
std::string field(std::string q)
std::string field(std::string q, int idx = 0)
{
Row r = get_row(m_conn, q);
return r.empty() ? std::string() : r[0];
return r.empty() ? std::string() : r[idx];
}
const char* error() const