Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0853e4e

Browse files
committed
Use text type in add_node() to calm down opr_sanity regression test
1 parentf03d14f commit0853e4e

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-
CREATEFUNCTIONmtm.add_node(conn_strcstring) RETURNS void
16+
CREATEFUNCTIONmtm.add_node(conn_strtext) 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)

[8]ページ先頭

©2009-2025 Movatter.jp