pgpool2.git / summary / log / commit / refs

commit    a0f3da70c415b0bed652cb46d1e7c20b079c0e09
Author:   Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date:     Tue Apr 01 01:12:28 2008 +0000

    Fix "AS" handling in FROM clause.
    Patch contributed by sho-san.


pool_rewrite_outfuncs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pool_rewrite_outfuncs.c b/pool_rewrite_outfuncs.c index b0ce2cb63..a79dbe75c 100644 --- a/pool_rewrite_outfuncs.c +++ b/pool_rewrite_outfuncs.c @@ -1757,6 +1757,12 @@ _rewriteRangeVar(Node *BaseSelect, RewriteQuery *message, ConInfoTodblink *dblin message->schemaname = NULL; delay_string_append_char(message, str, node->relname); + + if (alias_name) + { + delay_string_append_char(message, str, " AS "); + delay_string_append_char(message, str, alias_name); + } if(select->whereClause && !(message->r_code == SELECT_PGCATALOG)) [parent: bac6b7b7becd]