mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix coredump in copyCommentStmt().
This commit is contained in:
parent
339a5bbfb1
commit
eab8ee9524
@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.121 2000/09/12 21:06:49 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.122 2000/09/20 15:28:01 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1920,6 +1920,7 @@ _copyCommentStmt(CommentStmt *from)
|
||||
|
||||
newnode->objtype = from->objtype;
|
||||
newnode->objname = pstrdup(from->objname);
|
||||
if (from->objproperty)
|
||||
newnode->objproperty = pstrdup(from->objproperty);
|
||||
Node_Copy(from, newnode, objlist);
|
||||
newnode->comment = pstrdup(from->comment);
|
||||
|
Loading…
x
Reference in New Issue
Block a user