diff options
author | unknown <bell@sanja.is.com.ua> | 2002-10-08 14:50:12 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-10-08 14:50:12 +0300 |
commit | e8e3f7728fbe66f75b328a56a48059552b0bea15 (patch) | |
tree | 30b02ef49b175b51e61fdc08f11239b5bd0a0fa4 /mysql-test/t | |
parent | 956c993f64ca673bb8085d21164e22d110aea3c3 (diff) | |
download | mariadb-git-e8e3f7728fbe66f75b328a56a48059552b0bea15.tar.gz |
fixed couple of bugs in field/reference name resolution
fixed error handling in subselect fix_field
mysql-test/r/subselect.result:
test of name resolution
mysql-test/t/subselect.test:
test of name resolution
sql/item.cc:
fixed couple of bugs in field/reference name resolution.
sql/item_subselect.cc:
fixed error handling
sql/mysql_priv.h:
fixed couple of bugs in field/reference name resolution.
sql/sql_base.cc:
fixed couple of bugs in field/reference name resolution.
sql/sql_select.cc:
new find_item_in_list interface
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/subselect.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mysql-test/t/subselect.test b/mysql-test/t/subselect.test index 00d58c218aa..c34332d6d90 100644 --- a/mysql-test/t/subselect.test +++ b/mysql-test/t/subselect.test @@ -53,6 +53,10 @@ insert into clinic values(1,"Oblastnaia bolnitsa"),(2,"Bolnitsa Krasnogo Kresta" insert into attend values (1,1),(1,2),(2,2),(1,3); select * from attend where exists (select * from clinic where uq = clinic_uq); +# not unique fields +-- error 1052 +select * from t1 where a= (select a from t2,t4 where t2.b=t4.b); + # different tipes & group functions drop table if exists t1,t2,t3; @@ -81,4 +85,4 @@ INSERT INTO inscrit (pseudo,email) VALUES ('2joce1','2test1'); -- error 1240 SELECT pseudo FROM inscrit WHERE pseudo=(SELECT pseudo FROM inscrit WHERE pseudo LIKE '%joce%'); -drop table if exists inscrit;
\ No newline at end of file +drop table if exists t1,t2,t3,t4,t5,attend,clinic,inscrit;
\ No newline at end of file |