|
6 | 6 | * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | *
|
9 |
| - *$Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.234 2002/05/12 20:10:03 tgl Exp $ |
| 9 | + *$Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.235 2002/05/28 22:15:42 tgl Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -856,8 +856,7 @@ transformColumnDefinition(ParseState *pstate, CreateStmtContext *cxt,
|
856 | 856 | * Create an expression tree representing the function call
|
857 | 857 | * nextval('"sequencename"')
|
858 | 858 | */
|
859 |
| -qstring=palloc(strlen(snamespace)+strlen(sname)+5+1); |
860 |
| -sprintf(qstring,"\"%s\".\"%s\"",snamespace,sname); |
| 859 | +qstring=quote_qualified_identifier(snamespace,sname); |
861 | 860 | snamenode=makeNode(A_Const);
|
862 | 861 | snamenode->val.type=T_String;
|
863 | 862 | snamenode->val.val.str=qstring;
|
|