Files
sysbench/tests/include/pgsql_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
363 B
Bash

########################################################################
# Common code for PostgreSQL-specific tests
########################################################################
set -eu
if [ -z "${SBTEST_PGSQL_ARGS:-}" ]
then
exit 80
fi
function db_show_table() {
psql -c "\d+ $1" sbtest
}
DB_DRIVER_ARGS="--db-driver=pgsql $SBTEST_PGSQL_ARGS"