Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a100974

Browse files
committed
Fix typo in message
I introduced the typo in source code in the course of 75445c1. Repair.
1 parent 40b132c commit a100974

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/commands/subscriptioncmds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ parse_subscription_options(List *options, bool *connect, bool *enabled_given,
231231
(errcode(ERRCODE_SYNTAX_ERROR),
232232
/*- translator: both %s are strings of the form "option = value" */
233233
errmsg("%s and %s are mutually exclusive options",
234-
"slot_name = NONE", "enable = true")));
234+
"slot_name = NONE", "enabled = true")));
235235

236236
if (create_slot && create_slot_given && *create_slot)
237237
ereport(ERROR,

src/test/regress/expected/subscription.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ERROR: connect = false and enabled = true are mutually exclusive options
5353
CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (connect = false, create_slot = true);
5454
ERROR: connect = false and create_slot = true are mutually exclusive options
5555
CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (slot_name = NONE, enabled = true);
56-
ERROR: slot_name = NONE and enable = true are mutually exclusive options
56+
ERROR: slot_name = NONE and enabled = true are mutually exclusive options
5757
CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (slot_name = NONE, create_slot = true);
5858
ERROR: slot_name = NONE and create_slot = true are mutually exclusive options
5959
CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (slot_name = NONE);

0 commit comments

Comments
 (0)