Fix typo in message
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 28 May 2019 21:34:38 +0000 (17:34 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 28 May 2019 21:36:14 +0000 (17:36 -0400)
I introduced the typo in source code in the course of 75445c1515ff.
Repair.

src/backend/commands/subscriptioncmds.c
src/test/regress/expected/subscription.out

index 26c06e10e7c9e734009a00a02b156becc6b1599d..f13dce90a116a614fc91ba3575b1c8c5a75b2f79 100644 (file)
@@ -231,7 +231,7 @@ parse_subscription_options(List *options, bool *connect, bool *enabled_given,
                                        (errcode(ERRCODE_SYNTAX_ERROR),
                        /*- translator: both %s are strings of the form "option = value" */
                                         errmsg("%s and %s are mutually exclusive options",
-                                                       "slot_name = NONE", "enable = true")));
+                                                       "slot_name = NONE", "enabled = true")));
 
                if (create_slot && create_slot_given && *create_slot)
                        ereport(ERROR,
index fae5c079c0ab4eadf4f5844ec96b6bd6eacd737e..5ec3b403adb9fb453ec230a4284a44deb559ac7e 100644 (file)
@@ -53,7 +53,7 @@ ERROR:  connect = false and enabled = true are mutually exclusive options
 CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (connect = false, create_slot = true);
 ERROR:  connect = false and create_slot = true are mutually exclusive options
 CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (slot_name = NONE, enabled = true);
-ERROR:  slot_name = NONE and enable = true are mutually exclusive options
+ERROR:  slot_name = NONE and enabled = true are mutually exclusive options
 CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (slot_name = NONE, create_slot = true);
 ERROR:  slot_name = NONE and create_slot = true are mutually exclusive options
 CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=doesnotexist' PUBLICATION testpub WITH (slot_name = NONE);