diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-02-10 04:02:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-02-10 04:02:59 +0000 |
commit | 2c482cdbf20854f75b36fdf15b9e68403473228f (patch) | |
tree | 573f7ff37c037e658675981e5b659e6171596f0d /src/backend/commands/recipe.c | |
parent | 2535fcde2a8a56159ed90b0debc05cf3be06ac35 (diff) | |
download | postgresql-2c482cdbf20854f75b36fdf15b9e68403473228f.tar.gz postgresql-2c482cdbf20854f75b36fdf15b9e68403473228f.zip |
Pass attypmod through to executor by adding to Var and Resdom.
Diffstat (limited to 'src/backend/commands/recipe.c')
-rw-r--r-- | src/backend/commands/recipe.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/backend/commands/recipe.c b/src/backend/commands/recipe.c index 96808a6e311..a95913392ca 100644 --- a/src/backend/commands/recipe.c +++ b/src/backend/commands/recipe.c @@ -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"); } |