mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Instead of supposing (wrongly, in the general case) that the rowtype
of an inheritance child table is binary-compatible with the rowtype of its parent, invent an expression node type that does the conversion correctly. Fixes the new bug exhibited by Kris Shannon as well as a lot of old bugs that would only show up when using multiple inheritance or after altering the parent table.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* procedural language
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.123 2004/11/30 03:50:29 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.124 2004/12/11 23:26:51 tgl Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
@@ -4024,6 +4024,9 @@ exec_simple_check_node(Node *node)
|
||||
case T_RelabelType:
|
||||
return exec_simple_check_node((Node *) ((RelabelType *) node)->arg);
|
||||
|
||||
case T_ConvertRowtypeExpr:
|
||||
return exec_simple_check_node((Node *) ((ConvertRowtypeExpr *) node)->arg);
|
||||
|
||||
case T_CaseExpr:
|
||||
{
|
||||
CaseExpr *expr = (CaseExpr *) node;
|
||||
|
Reference in New Issue
Block a user