Skip to content

Commit ee20dac

Browse files
committed
clean re-apply of fa0ca21
1 parent 8b3655f commit ee20dac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contrib/mmts/multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4265,8 +4265,8 @@ Datum mtm_make_table_local(PG_FUNCTION_ARGS)
42654265
/* Form a tuple. */
42664266
memset(nulls, false, sizeof(nulls));
42674267

4268-
values[Anum_mtm_local_tables_rel_schema - 1] = CStringGetTextDatum(schemaName);
4269-
values[Anum_mtm_local_tables_rel_name - 1] = CStringGetTextDatum(tableName);
4268+
values[Anum_mtm_local_tables_rel_schema - 1] = CStringGetDatum(schemaName);
4269+
values[Anum_mtm_local_tables_rel_name - 1] = CStringGetDatum(tableName);
42704270

42714271
tup = heap_form_tuple(tupDesc, values, nulls);
42724272

contrib/mmts/pglogical_apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ process_remote_insert(StringInfo s, Relation rel)
871871
if (strcmp(RelationGetRelationName(rel), MULTIMASTER_LOCAL_TABLES_TABLE) == 0 &&
872872
strcmp(get_namespace_name(RelationGetNamespace(rel)), MULTIMASTER_SCHEMA_NAME) == 0)
873873
{
874-
MtmMakeTableLocal(TextDatumGetCString(new_tuple.values[0]), TextDatumGetCString(new_tuple.values[1]));
874+
MtmMakeTableLocal((char*)DatumGetPointer(new_tuple.values[0]), (char*)DatumGetPointer(new_tuple.values[1]));
875875
}
876876

877877
ExecResetTupleTable(estate->es_tupleTable, true);

0 commit comments

Comments
 (0)