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

Commitbc97207

Browse files
committed
Add missing pstrdup
Lifetime of the input string is not right, so create a separate copy.Author: Amit LangoteDiscussion:https://postgr.es/m/a2773420-50d1-0a42-3396-fe42b0921134@lab.ntt.co.jp
1 parentdfce1f9 commitbc97207

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14568,7 +14568,8 @@ CloneRowTriggersToPartition(Relation parent, Relation partition)
1456814568

1456914569
col=TupleDescAttr(parent->rd_att,
1457014570
trigForm->tgattr.values[i]-1);
14571-
cols=lappend(cols,makeString(NameStr(col->attname)));
14571+
cols=lappend(cols,
14572+
makeString(pstrdup(NameStr(col->attname))));
1457214573
}
1457314574
}
1457414575

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp