Commit becd2f9b authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

Fix for "default = '...'" in CREATE TYPE

parent 174bc0c1
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.39 1997/08/22 03:17:55 vadim Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.40 1997/08/28 05:02:01 vadim Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -716,6 +716,13 @@ def_elem: def_name '=' def_arg ...@@ -716,6 +716,13 @@ def_elem: def_name '=' def_arg
$$->defname = $1; $$->defname = $1;
$$->arg = (Node *)NULL; $$->arg = (Node *)NULL;
} }
| DEFAULT '=' def_arg
{
$$ = makeNode(DefElem);
$$->defname = (char*) palloc (8);
strcpy ($$->defname, "default");
$$->arg = (Node *)$3;
}
; ;
def_arg: Id { $$ = (Node *)makeString($1); } def_arg: Id { $$ = (Node *)makeString($1); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment