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

Commit 0853e4e

Browse files
committed
Use text type in add_node() to calm down opr_sanity regression test
1 parent f03d14f commit 0853e4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

multimaster--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CREATE FUNCTION mtm.drop_node(node integer, drop_slot bool default false) RETURN
1313
AS 'MODULE_PATHNAME','mtm_drop_node'
1414
LANGUAGE C;
1515

16-
CREATE FUNCTION mtm.add_node(conn_str cstring) RETURNS void
16+
CREATE FUNCTION mtm.add_node(conn_str text) RETURNS void
1717
AS 'MODULE_PATHNAME','mtm_add_node'
1818
LANGUAGE C;
1919

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3014,7 +3014,7 @@ mtm_drop_node(PG_FUNCTION_ARGS)
30143014
Datum
30153015
mtm_add_node(PG_FUNCTION_ARGS)
30163016
{
3017-
char* connStr = PG_GETARG_CSTRING(0);
3017+
char *connStr = text_to_cstring(PG_GETARG_TEXT_PP(0));
30183018

30193019
if (Mtm->nAllNodes == MtmMaxNodes) {
30203020
elog(ERROR, "Maximal number of nodes %d is reached", MtmMaxNodes);

0 commit comments

Comments
 (0)