Skip to content

Commit

Permalink
normalize redis table function db name
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyWoo committed Jun 2, 2023
1 parent ef6fde8 commit b01db87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TableFunctions/TableFunctionRedis.cpp
Expand Up @@ -32,8 +32,9 @@ StoragePtr TableFunctionRedis::executeImpl(
StorageInMemoryMetadata metadata;
metadata.setColumns(columns);

String db_name = "redis" + getDatabaseName() + "_db_" + toString(configuration.db_index);
auto storage = std::make_shared<StorageRedis>(
StorageID(toString(configuration.db_index), table_name), configuration, context, metadata, primary_key);
StorageID(db_name, table_name), configuration, context, metadata, primary_key);
storage->startup();
return storage;
}
Expand Down

0 comments on commit b01db87

Please sign in to comment.