summaryrefslogtreecommitdiff
path: root/mysql-test/t/row.test
diff options
context:
space:
mode:
authorunknown <igor@olga.mysql.com>2007-04-11 11:57:40 -0700
committerunknown <igor@olga.mysql.com>2007-04-11 11:57:40 -0700
commit0ec3c2212e418ea1917ec10b7ce810fda75fcf40 (patch)
tree3750b517ef9032b9c09ecd53c6f54734d5a38faa /mysql-test/t/row.test
parentb518d2a8bd328f9bb985b211382a97e55059a92c (diff)
parentaa051961c9ac4629fd7dca9f236172e47660bbeb (diff)
downloadmariadb-git-0ec3c2212e418ea1917ec10b7ce810fda75fcf40.tar.gz
Merge olga.mysql.com:/home/igor/dev-opt/mysql-4.1-opt-bug27484
into olga.mysql.com:/home/igor/mysql-5.0-opt mysql-test/t/row.test: Auto merged mysql-test/r/row.result: Manual merge sql/item_cmpfunc.cc: Manual merge
Diffstat (limited to 'mysql-test/t/row.test')
-rw-r--r--mysql-test/t/row.test25
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/row.test b/mysql-test/t/row.test
index 1d5c7a543ea..bf25359b7be 100644
--- a/mysql-test/t/row.test
+++ b/mysql-test/t/row.test
@@ -85,6 +85,31 @@ drop table t1;
SELECT ROW(2,10) <=> ROW(3,4);
SELECT ROW(NULL,10) <=> ROW(3,NULL);
+#
+# Bug #27484: nested row expressions in IN predicate
+#
+
+--error 1241
+SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),ROW(1,1));
+--error 1241
+SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),ROW(1,1),ROW(1,ROW(2,3)));
+--error 1241
+SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),ROW(1,ROW(2,2,2)));
+--error 1241
+SELECT ROW(1,ROW(2,3,4)) IN (ROW(1,ROW(2,3,4)),ROW(1,ROW(2,2)));
+
+--error 1241
+SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),(SELECT 1,1));
+--error 1241
+SELECT ROW(1,ROW(2,3)) IN (ROW(1,ROW(2,3)),(SELECT 1,1),ROW(1,ROW(2,4)));
+--error 1241
+SELECT ROW(1,ROW(2,3)) IN ((SELECT 1,1),ROW(1,ROW(2,3)));
+
+--error 1241
+SELECT ROW(2,1) IN (ROW(21,2),ROW(ROW(1,1,3),0));
+--error 1241
+SELECT ROW(2,1) IN (ROW(ROW(1,1,3),0),ROW(21,2));
+
# End of 4.1 tests
#