mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Fix coredump in copyCommentStmt().
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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->objtype = from->objtype;
|
||||||
newnode->objname = pstrdup(from->objname);
|
newnode->objname = pstrdup(from->objname);
|
||||||
|
if (from->objproperty)
|
||||||
newnode->objproperty = pstrdup(from->objproperty);
|
newnode->objproperty = pstrdup(from->objproperty);
|
||||||
Node_Copy(from, newnode, objlist);
|
Node_Copy(from, newnode, objlist);
|
||||||
newnode->comment = pstrdup(from->comment);
|
newnode->comment = pstrdup(from->comment);
|
||||||
|
Reference in New Issue
Block a user