ClickHouse/tests/queries/0_stateless/02968_mysql_show_warnings.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
690 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Tags: no-fasttest
# Tag no-fasttest: requires mysql client
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
${MYSQL_CLIENT} --execute "SHOW WARNINGS;"
${MYSQL_CLIENT} --execute "show warnings;"
${MYSQL_CLIENT} --execute "SHOW WARNINGS LIMIT 100;"
${MYSQL_CLIENT} --execute "show warnings limit 100;"
${MYSQL_CLIENT} --execute "SHOW WARNINGS LIMIT 100 OFFSET 100;"
${MYSQL_CLIENT} --execute "show warnings limit 100 offset 100;"
${MYSQL_CLIENT} --execute "SHOW COUNT(*) WARNINGS;"
${MYSQL_CLIENT} --execute "show count(*) warnings;"
${MYSQL_CLIENT} --execute "SELECT @@session.warning_count;"