mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Replace pg_attribute.attisinherited with attislocal and attinhcount
columns, to allow more correct behavior in multiple-inheritance cases. Patch by Alvaro Herrera, review by Tom Lane.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.368 2002/09/22 17:27:23 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.369 2002/09/22 19:42:51 tgl Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@@ -1453,6 +1453,7 @@ columnDef: ColId Typename ColQualList opt_collate
|
||||
n->colname = $1;
|
||||
n->typename = $2;
|
||||
n->constraints = $3;
|
||||
n->is_local = true;
|
||||
|
||||
if ($4 != NULL)
|
||||
elog(NOTICE,
|
||||
@@ -1842,6 +1843,8 @@ CreateAsElement:
|
||||
ColumnDef *n = makeNode(ColumnDef);
|
||||
n->colname = $1;
|
||||
n->typename = NULL;
|
||||
n->inhcount = 0;
|
||||
n->is_local = true;
|
||||
n->is_not_null = false;
|
||||
n->raw_default = NULL;
|
||||
n->cooked_default = NULL;
|
||||
@@ -4844,6 +4847,7 @@ TableFuncElement: ColId Typename
|
||||
n->colname = $1;
|
||||
n->typename = $2;
|
||||
n->constraints = NIL;
|
||||
n->is_local = true;
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
;
|
||||
|
Reference in New Issue
Block a user