mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Fix test_mysql_protocol
This commit is contained in:
parent
26fdef4d49
commit
6919db3d46
@ -34,7 +34,7 @@ public:
|
||||
using Base = InDepthQueryTreeVisitor<PrepareForExternalDatabaseVisitor>;
|
||||
using Base::Base;
|
||||
|
||||
void visitImpl(QueryTreeNodePtr & node)
|
||||
static void visitImpl(QueryTreeNodePtr & node)
|
||||
{
|
||||
auto * constant_node = node->as<ConstantNode>();
|
||||
if (constant_node)
|
||||
|
@ -576,7 +576,7 @@ def test_python_client(started_cluster):
|
||||
client.query("select name from tables")
|
||||
|
||||
resp = exc_info.value.args[1]
|
||||
assert fnmatch.fnmatch(resp, "*DB::Exception:*system.part_log*UNKNOWN_TABLE*"), resp
|
||||
assert fnmatch.fnmatch(resp, "*DB::Exception:*tables*UNKNOWN_TABLE*"), resp
|
||||
|
||||
cursor = client.cursor(pymysql.cursors.DictCursor)
|
||||
cursor.execute("select 1 as a, 'тест' as b")
|
||||
@ -609,7 +609,7 @@ def test_python_client(started_cluster):
|
||||
client.query("select name from tables")
|
||||
|
||||
resp = exc_info.value.args[1]
|
||||
assert fnmatch.fnmatch(resp, "*DB::Exception:*system.part_log*UNKNOWN_TABLE*"), resp
|
||||
assert fnmatch.fnmatch(resp, "*DB::Exception:*tables*UNKNOWN_TABLE*"), resp
|
||||
|
||||
cursor = client.cursor(pymysql.cursors.DictCursor)
|
||||
cursor.execute("select 1 as a, 'тест' as b")
|
||||
|
Loading…
Reference in New Issue
Block a user