diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-02-26 21:11:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-02-26 21:11:10 +0000 |
commit | 7173c485c817735012ceacd8662a0c2aa3068396 (patch) | |
tree | 46cf181e4970ba015fb580631f790334b8228775 /src/backend/parser/parse_clause.c | |
parent | cbf4c9671ed01c769c6d6abb29fe082437373c33 (diff) | |
download | postgresql-7173c485c817735012ceacd8662a0c2aa3068396.tar.gz postgresql-7173c485c817735012ceacd8662a0c2aa3068396.zip |
Fix exprTypmod to recognize length-coercion function expressions,
such as bpchar(char_expression, N), and pull out the attrtypmod that
the function is coercing to. This allows correct deduction of the
column type in examples such as
CREATE VIEW v AS SELECT f1::char(8) FROM tbl;
Formerly we labeled v's column as char-of-unknown-length not char(8).
Also, this change causes the parser not to insert a redundant length
coercion function if the user has explicitly casted an INSERT or UPDATE
expression to the right length.
Diffstat (limited to 'src/backend/parser/parse_clause.c')
0 files changed, 0 insertions, 0 deletions