Add one more test

This commit is contained in:
kssenii 2022-01-10 14:04:18 +03:00
parent 21c34ad59b
commit 669c7bf571
2 changed files with 11 additions and 1 deletions

View File

@ -21,5 +21,14 @@
<database>clickhouse</database>
<table>test_table</table>
</mysql3>
<mysql4>
<user>root</user>
<password>clickhouse</password>
<host>mysql57</host>
<port>3306</port>
<database>clickhouse</database>
<table>test_table</table>
<connection_pool_size>0</connection_pool_size>
</mysql4>
</named_collections>
</clickhouse>

View File

@ -418,7 +418,8 @@ def test_predefined_connection_configuration(started_cluster):
''')
assert (node1.query(f"SELECT count() FROM test_table").rstrip() == '100')
assert 'Connection pool cannot have zero size' in node1.query_and_get_error(f"SELECT count() FROM mysql(mysql1, table='test_table', connection_pool_size=0)").rstrip()
assert 'Connection pool cannot have zero size' in node1.query_and_get_error(f"SELECT count() FROM mysql(mysql1, table='test_table', connection_pool_size=0)")
assert 'Connection pool cannot have zero size' in node1.query_and_get_error(f"SELECT count() FROM mysql(mysql4)")
# Regression for (k, v) IN ((k, v))