diff options
| author | Bruce Momjian | 2002-06-18 17:27:58 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2002-06-18 17:27:58 +0000 |
| commit | 71fd49e28dd218531164d5cd9fd080323c3f1bad (patch) | |
| tree | a7cc0eb8950fbb94c730d728f6efc0e448460d5d /src/include | |
| parent | 3d564953cd4f1f85f18ad53b49e099635f8c2cd8 (diff) | |
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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/commands/dbcommands.h | 6 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h index 32c823e152c..1a99da6d4da 100644 --- a/src/include/commands/dbcommands.h +++ b/src/include/commands/dbcommands.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: dbcommands.h,v 1.21 2002/03/01 22:45:17 petere Exp $ + * $Id: dbcommands.h,v 1.22 2002/06/18 17:27:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -16,9 +16,7 @@ #include <nodes/parsenodes.h> -extern void createdb(const char *dbname, const char *dbowner, - const char *dbpath, const char *dbtemplate, - int encoding); +extern void createdb(CreatedbStmt *stmt); extern void dropdb(const char *dbname); extern void AlterDatabaseSet(AlterDatabaseSetStmt *stmt); diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index f7ea60ac802..01b90ce0285 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.179 2002/05/22 17:21:01 petere Exp $ + * $Id: parsenodes.h,v 1.180 2002/06/18 17:27:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1350,10 +1350,7 @@ typedef struct CreatedbStmt { NodeTag type; char *dbname; /* name of database to create */ - char *dbowner; /* name of owner (NULL = default) */ - char *dbpath; /* location of database (NULL = default) */ - char *dbtemplate; /* template to use (NULL = default) */ - int encoding; /* MULTIBYTE encoding (-1 = use default) */ + List *options; /* List of DefElem nodes */ } CreatedbStmt; /* ---------------------- |
