Rewrite temporary table test

Use stack allocated test class and use const char pointers for const
functions. Simplify the test and improve error messages.
This commit is contained in:
Markus Mäkelä
2017-06-06 22:45:19 +03:00
parent de23297944
commit 943662d2b5
3 changed files with 40 additions and 77 deletions

View File

@ -11,7 +11,7 @@
* @param rows Expected number of rows
* @return 0 in case of success
*/
int execute_select_query_and_check(MYSQL *conn, char *sql, unsigned long long int rows);
int execute_select_query_and_check(MYSQL *conn, const char *sql, unsigned long long int rows);
/**
* @brief create_t1 Create t1 table, fileds: (x1 int, fl int)