mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Pass attypmod through to executor by adding to Var and Resdom.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.24 1998/01/05 16:38:49 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.25 1998/02/10 04:00:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -304,6 +304,7 @@ MergeAttributes(List *schema, List *supers, List **supconstr)
|
||||
typename = makeNode(TypeName);
|
||||
def->colname = pstrdup(attributeName);
|
||||
typename->name = pstrdup(attributeType);
|
||||
typename->typmod = attribute->atttypmod;
|
||||
def->typename = typename;
|
||||
def->is_not_null = attribute->attnotnull;
|
||||
def->defval = NULL;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.18 1998/01/20 22:10:53 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/recipe.c,v 1.19 1998/02/10 04:00:24 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -493,7 +493,8 @@ tg_replaceNumberedParam(Node *expression,
|
||||
{
|
||||
newVar = makeVar(rt_ind,
|
||||
0, /* the whole tuple */
|
||||
TypeGet(teeRelName, &defined),
|
||||
TypeGet(teeRelName, &defined),
|
||||
-1,
|
||||
0,
|
||||
rt_ind,
|
||||
0);
|
||||
@@ -503,7 +504,8 @@ tg_replaceNumberedParam(Node *expression,
|
||||
newVar = makeVar(rt_ind,
|
||||
1, /* just the first field,
|
||||
* which is 'result' */
|
||||
TypeGet(teeRelName, &defined),
|
||||
TypeGet(teeRelName, &defined),
|
||||
-1,
|
||||
0,
|
||||
rt_ind,
|
||||
0);
|
||||
@@ -1067,8 +1069,8 @@ tg_parseSubQuery(TgRecipe * r, TgNode * n, TeeInfo * teeInfo)
|
||||
|
||||
if (!TupleDescInitEntry(tupdesc, 1,
|
||||
"result",
|
||||
NULL,
|
||||
0, false))
|
||||
InvalidOid,
|
||||
-1, 0, false))
|
||||
{
|
||||
elog(NOTICE, "tg_parseSubQuery: unexpected result from TupleDescInitEntry");
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.19 1998/01/05 16:39:08 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.20 1998/02/10 04:00:32 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -77,6 +77,8 @@ DefineVirtualRelation(char *relname, List *tlist)
|
||||
typename = makeNode(TypeName);
|
||||
|
||||
typename->name = pstrdup(restypename);
|
||||
typename->typmod = res->restypmod;
|
||||
|
||||
def->colname = pstrdup(resname);
|
||||
|
||||
def->typename = typename;
|
||||
|
||||
Reference in New Issue
Block a user