Files
sysbench/tests/include/mysql_common.sh
Alexey Kopytov 5e7d79b49f Fixes #13: Export db_fetch_row
Add support for result set retrieving for MySQL and PostgreSQL drivers
and export it to the new Lua SQL API.
2017-01-17 22:58:18 +03:00

16 lines
384 B
Bash

########################################################################
# Common code for MySQL-specific tests
########################################################################
set -eu
if [ -z "${SBTEST_MYSQL_ARGS:-}" ]
then
exit 80
fi
function db_show_table() {
mysql -uroot sbtest -Nse "SHOW CREATE TABLE $1\G"
}
DB_DRIVER_ARGS="--db-driver=mysql $SBTEST_MYSQL_ARGS"