From b30b339f916c029a5ef843b06ca791b7e77b9b05 Mon Sep 17 00:00:00 2001 From: Burak Yucesoy Date: Tue, 1 Nov 2016 16:58:27 +0200 Subject: [PATCH] Fix typo in error message --- src/backend/distributed/commands/create_distributed_table.c | 4 ++-- src/test/regress/expected/multi_foreign_key.out | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/distributed/commands/create_distributed_table.c b/src/backend/distributed/commands/create_distributed_table.c index 832f162f2..f9ebf8af1 100644 --- a/src/backend/distributed/commands/create_distributed_table.c +++ b/src/backend/distributed/commands/create_distributed_table.c @@ -563,8 +563,8 @@ ErrorIfNotSupportedForeignConstraint(Relation relation, char distributionMethod, { ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot create foreign key constraint"), - errdetail("Citus Community Edition currently supports foreign" - "key constraints only for " + errdetail("Citus Community Edition currently supports " + "foreign key constraints only for " "\"citus.shard_replication_factor = 1\"."), errhint("Please change \"citus.shard_replication_factor to " "1\". To learn more about using foreign keys with " diff --git a/src/test/regress/expected/multi_foreign_key.out b/src/test/regress/expected/multi_foreign_key.out index 5a84c5f8d..e61d87d46 100644 --- a/src/test/regress/expected/multi_foreign_key.out +++ b/src/test/regress/expected/multi_foreign_key.out @@ -63,7 +63,7 @@ DROP TABLE referencing_table; CREATE TABLE referencing_table(id int, ref_id int, FOREIGN KEY(ref_id) REFERENCES referenced_table(id)); SELECT create_distributed_table('referencing_table', 'ref_id', 'hash'); ERROR: cannot create foreign key constraint -DETAIL: Citus Community Edition currently supports foreignkey constraints only for "citus.shard_replication_factor = 1". +DETAIL: Citus Community Edition currently supports foreign key constraints only for "citus.shard_replication_factor = 1". HINT: Please change "citus.shard_replication_factor to 1". To learn more about using foreign keys with other replication factors, please contact us at https://citusdata.com/about/contact_us. DROP TABLE referencing_table; DROP TABLE referenced_table;