Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### 1.5.0
- feat: #139: Fix to replicas query when using default as cluster name
- feat: #133: Fix simultaneous queries error when iteration is interrupted
- feat: #130: Add `distributed_migrations` database setting to support distributed migration queries.
- feat: #129: Add `toYearWeek` datetime functionality
Expand Down
2 changes: 1 addition & 1 deletion clickhouse_backend/patch/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _check_replicas(connection):

with connection.cursor() as cursor:
cursor.execute(
f"select replica_num from system.clusters where cluster={connection.migration_cluster}"
f"select replica_num from system.clusters where cluster='{connection.migration_cluster}'"
)
(replica_count,) = cursor.fetchone()
return replica_count >= 1
Expand Down