Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
SHOW WARNINGS
support in MySQL interface
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/queries/0_stateless/02968_mysql_show_warnings.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@@session.warning_count | ||
0 | ||
@@session.warning_count | ||
0 | ||
@@warning_count | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
# Tags: no-fasttest | ||
# Tag no-fasttest: requires mysql client | ||
|
||
# Tests the override of certain MySQL proprietary settings to ClickHouse native settings | ||
|
||
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;" |