diff options
Diffstat (limited to 'src/backend/nodes')
| -rw-r--r-- | src/backend/nodes/copyfuncs.c | 10 | ||||
| -rw-r--r-- | src/backend/nodes/equalfuncs.c | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 5bc16dc9b82..d2a3f40a348 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -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.188 2002/05/22 17:20:58 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.189 2002/06/18 17:27:57 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -2258,13 +2258,7 @@ _copyCreatedbStmt(CreatedbStmt *from) if (from->dbname) newnode->dbname = pstrdup(from->dbname); - if (from->dbowner) - newnode->dbowner = pstrdup(from->dbowner); - if (from->dbpath) - newnode->dbpath = pstrdup(from->dbpath); - if (from->dbtemplate) - newnode->dbtemplate = pstrdup(from->dbtemplate); - newnode->encoding = from->encoding; + Node_Copy(from, newnode, options); return newnode; } diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index b4f576fc881..85ff384479d 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -20,7 +20,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.135 2002/05/22 17:20:59 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.136 2002/06/18 17:27:57 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1085,13 +1085,7 @@ _equalCreatedbStmt(CreatedbStmt *a, CreatedbStmt *b) { if (!equalstr(a->dbname, b->dbname)) return false; - if (!equalstr(a->dbowner, b->dbowner)) - return false; - if (!equalstr(a->dbpath, b->dbpath)) - return false; - if (!equalstr(a->dbtemplate, b->dbtemplate)) - return false; - if (a->encoding != b->encoding) + if (!equal(a->options, b->options)) return false; return true; |
