summaryrefslogtreecommitdiff
path: root/mysql-test/main/insert.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/insert.result')
-rw-r--r--mysql-test/main/insert.result33
1 files changed, 33 insertions, 0 deletions
diff --git a/mysql-test/main/insert.result b/mysql-test/main/insert.result
index d8f40b7383a..674223c17a4 100644
--- a/mysql-test/main/insert.result
+++ b/mysql-test/main/insert.result
@@ -745,12 +745,42 @@ f1 f2
drop view v1;
drop table t1;
SET @@sql_mode= @save_mode;
+#
+# MDEV-13861 Assertion `0' failed in Protocol::end_statement
+#
CREATE TABLE t1 (f INT);
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f <=> 'foo' WITH CHECK OPTION;
REPLACE INTO v1 SET f = NULL;
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
DROP VIEW v1;
DROP TABLE t1;
+#
+# End of 10.0 tests
+#
+#
+# MDEV-26412: INSERT CREATE with subquery in ON expression
+#
+create table t1 (a int);
+create table t2 (b int);
+create table t3 (c int);
+create table t4 (d1 int, d2 int);
+insert into t4
+select * from t1 left join t2 on (select t1.i from t3);
+ERROR 42S22: Unknown column 't1.i' in 'field list'
+replace t4
+select * from t1 left join t2 on (select t1.i from t3);
+ERROR 42S22: Unknown column 't1.i' in 'field list'
+drop table t1,t2,t3,t4;
+create table t (a int);
+select 1 in (select count(*) from t t1 join (t t2 join t t3 on (t1.a != 0)));
+ERROR 42S22: Unknown column 't1.a' in 'on clause'
+drop table t;
+#
+# End of 10.4 tests
+#
+#
+# outer references in subqueries in INSERT
+#
create table t1 (a int default 5);
insert t1 values (1);
insert t1 values (a);
@@ -767,3 +797,6 @@ a
7
8
drop table t1;
+#
+# End of 10.5 tests
+#