s/use_tables_cache/use_table_cache

This commit is contained in:
Mal Curtis 2023-05-03 23:40:12 +00:00
parent 9a67616791
commit 5727585d95
3 changed files with 3 additions and 3 deletions

View File

@ -319,7 +319,7 @@ DatabasePtr DatabaseFactory::getImpl(const ASTCreateQuery & create, const String
if (auto named_collection = tryGetNamedCollectionWithOverrides(engine_args, context))
{
configuration = StoragePostgreSQL::processNamedCollectionResult(*named_collection, false);
use_table_cache = named_collection->getOrDefault<UInt64>("use_tables_cache", 0);
use_table_cache = named_collection->getOrDefault<UInt64>("use_table_cache", 0);
}
else
{

View File

@ -416,7 +416,7 @@ StoragePostgreSQL::Configuration StoragePostgreSQL::processNamedCollectionResult
required_arguments.insert("table");
validateNamedCollection<ValidateKeysMultiset<ExternalDatabaseEqualKeysSet>>(
named_collection, required_arguments, {"schema", "on_conflict", "addresses_expr", "host", "hostname", "port", "use_tables_cache"});
named_collection, required_arguments, {"schema", "on_conflict", "addresses_expr", "host", "hostname", "port", "use_table_cache"});
configuration.addresses_expr = named_collection.getOrDefault<String>("addresses_expr", "");
if (configuration.addresses_expr.empty())

View File

@ -330,7 +330,7 @@ def test_predefined_connection_configuration(started_cluster):
node1.query(
"""
DROP DATABASE postgres_database;
CREATE DATABASE postgres_database ENGINE = PostgreSQL(postgres1, use_tables_cache=1);
CREATE DATABASE postgres_database ENGINE = PostgreSQL(postgres1, use_table_cache=1);
"""
)
assert (