diff options
author | unknown <dlenev@brandersnatch.localdomain> | 2004-09-30 16:28:17 +0400 |
---|---|---|
committer | unknown <dlenev@brandersnatch.localdomain> | 2004-09-30 16:28:17 +0400 |
commit | 53edc92cd01c292ebe536070f11c311542c7bb95 (patch) | |
tree | 869403a16f8b3c117fed13dae2bac7e2f7ab89b6 /BitKeeper | |
parent | ccf52b4fd5bd7ae0a418d22f2758cef345b6afa6 (diff) | |
download | mariadb-git-53edc92cd01c292ebe536070f11c311542c7bb95.tar.gz |
Final solution for bug# 4302 "Ambiguos order by when renamed column is
identical to another in result"
According to SQL standard queries like
"select t1.a as col from t1, t2 order by a" should return an error if
both tables contain field a.
mysql-test/r/order_by.result:
Updated test to conform SQL-standard.
mysql-test/t/order_by.test:
Updated test to conform SQL-standard.
sql/item.cc:
find_item_in_list() has now one more out parameter which is not used
in item.cc functions.
sql/mysql_priv.h:
find_item_in_list(): Added boolean out parameter "unaliased" which
indicates that we have found field by its original name and not by
its alias in item (select) list.
sql/sql_base.cc:
find_item_in_list(): Added boolean out parameter "unaliased" which
indicates that we have found field by its original name and not by
its alias in item (select) list. This means that additional check is
required to ensure there will be no ambiguity if we would search for this
field in all tables.
sql/sql_select.cc:
find_order_in_list(): If we have found field in select list by its
original name and not by its alias then we should perform additional
check to ensure that there will be no ambiguity if we will search for
this field in all tables. Also small cleanup.
Diffstat (limited to 'BitKeeper')
0 files changed, 0 insertions, 0 deletions