mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Change CREATE DATABASE to use DefElem instead of constructing structure
members in gram.y. This is the prefered method for WITH and arbitrary param/value pairs.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user