Changeset: fff911150e45 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/fff911150e45
Modified Files:
        sql/server/rel_select.c
Branch: Sep2022
Log Message:

get correct alias object


diffs (12 lines):

diff --git a/sql/server/rel_select.c b/sql/server/rel_select.c
--- a/sql/server/rel_select.c
+++ b/sql/server/rel_select.c
@@ -972,7 +972,7 @@ table_ref(sql_query *query, symbol *tabl
                                }
                        }
                        if (temp_table && tableref->data.lval->t->type == 
type_symbol && tableref->data.lval->t->data.sym && 
tableref->data.lval->t->data.sym->data.lval->h->next->data.lval) /* AS with 
column aliases */
-                               temp_table = rel_table_optname(sql, temp_table, 
tableref->data.lval->h->next->data.sym, refs);
+                               temp_table = rel_table_optname(sql, temp_table, 
tableref->data.lval->t->data.sym, refs);
                        if (allowed)
                                return temp_table;
                        return sql_error(sql, 02, SQLSTATE(42000) "SELECT: 
access denied for %s to table '%s'", get_string_global_var(sql, 
"current_user"), tname);
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to