Fix test_mysql_protocol

This commit is contained in:
vdimir 2023-03-15 09:38:40 +00:00 committed by Vladimir C
parent 26fdef4d49
commit 6919db3d46
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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")