diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-03-15 23:42:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-03-15 23:42:14 +0000 |
commit | 6358e654ca3e2710022fb25096118901b8327ad3 (patch) | |
tree | 62c5736a07b34293047ecdfbdfd86eb726b1cdb4 /src | |
parent | 1763a7c1ea3c609bae327f4c6be7cecc7cdee006 (diff) | |
download | postgresql-6358e654ca3e2710022fb25096118901b8327ad3.tar.gz postgresql-6358e654ca3e2710022fb25096118901b8327ad3.zip |
Update comment obsoleted by Thomas's latest fixes.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/ruleutils.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 59ec46a85aa..1a740048c6e 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -3,7 +3,7 @@ * out of its tuple * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.45 2000/03/14 23:06:37 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.46 2000/03/15 23:42:14 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -998,18 +998,9 @@ get_select_query_def(Query *query, deparse_context *context) inherit_marker(rte)); /* * NOTE: SQL92 says you can't write column aliases unless - * you write a table alias --- but the table alias could - * be spelled the same as the table's real name. This - * logic is therefore all wet: it should go something like - * IF we-need-to-dump-column-aliases OR relname != refname - * THEN print refname; - * IF we-need-to-dump-column-aliases - * THEN print column alias list. - * But currently we can't tell whether we need to dump - * column aliases or not... without that, this clearly - * backwards logic seems the best short-term approach. - * Since we don't really support SQL joins yet, dropping - * the list of column aliases doesn't hurt anything... + * you write a table alias --- so, if there's an alias list, + * make sure we emit a table alias even if it's the same as + * the table's real name. */ if ((rte->ref != NULL) && ((strcmp(rte->relname, rte->ref->relname) != 0) |