diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2000-11-24 20:16:40 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2000-11-24 20:16:40 +0000 |
| commit | 5b00ea9e50332882a46f7302a0c1db1f609a4c0b (patch) | |
| tree | efbc41b375b1a409d846ff74abcf7bb7afd8d517 /src/backend/parser/analyze.c | |
| parent | f1ddc19b10b081d0900c4fdee220f2b8a85b062f (diff) | |
| download | postgresql-5b00ea9e50332882a46f7302a0c1db1f609a4c0b.tar.gz | |
Make SET SESSION CHARACTERISTICS compliant with SQL 99. Remove redundant,
non-standard clauses. Allow CHARACTERISTICS as unquoted identifier.
Merge related reference pages.
Diffstat (limited to 'src/backend/parser/analyze.c')
| -rw-r--r-- | src/backend/parser/analyze.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 5c5942e4b7..3b1d5b3976 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: analyze.c,v 1.167 2000/11/18 16:17:20 petere Exp $ + * $Id: analyze.c,v 1.168 2000/11/24 20:16:39 petere Exp $ * *------------------------------------------------------------------------- */ @@ -208,38 +208,6 @@ transformStmt(ParseState *pstate, Node *parseTree) result = transformAlterTableStmt(pstate, (AlterTableStmt *) parseTree); break; - case T_SetSessionStmt: - { - List *l; - /* Session is a list of SetVariable nodes - * so just run through the list. - */ - SetSessionStmt *stmt = (SetSessionStmt *) parseTree; - - l = stmt->args; - /* First check for duplicate keywords (disallowed by SQL99) */ - while (l != NULL) - { - VariableSetStmt *v = (VariableSetStmt *) lfirst(l); - List *ll = lnext(l); - while (ll != NULL) - { - VariableSetStmt *vv = (VariableSetStmt *) lfirst(ll); - if (strcmp(v->name, vv->name) == 0) - elog(ERROR, "SET SESSION CHARACTERISTICS duplicated entry not allowed"); - ll = lnext(ll); - } - l = lnext(l); - } - - l = stmt->args; - result = transformStmt(pstate, lfirst(l)); - l = lnext(l); - if (l != NULL) - extras_after = lappend(extras_after, lfirst(l)); - } - break; - /*------------------------ * Optimizable statements *------------------------ |
