MXS-1549: Add basic test case

Added a basic test case that checks that the functionality works as
expected.
This commit is contained in:
Markus Mäkelä
2018-06-24 22:02:58 +03:00
parent 56f274d74a
commit 0911c664b1
4 changed files with 287 additions and 0 deletions

View File

@ -290,6 +290,11 @@ public:
return !row.empty() && row[0] == res;
}
Row row(std::string q)
{
return get_row(m_conn, q);
}
const char* error() const
{
return mysql_error(m_conn);