summaryrefslogtreecommitdiff
path: root/mysql-test/main/get_diagnostics.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/get_diagnostics.test')
-rw-r--r--mysql-test/main/get_diagnostics.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/main/get_diagnostics.test b/mysql-test/main/get_diagnostics.test
index e8d81dca1e6..24f407b5e05 100644
--- a/mysql-test/main/get_diagnostics.test
+++ b/mysql-test/main/get_diagnostics.test
@@ -1687,3 +1687,14 @@ GET DIAGNOSTICS CONDITION 3 @n = ROW_NUMBER;
SELECT @n;
DROP TABLE t;
+
+--echo #
+--echo # MDEV-26695: Number of an invalid row is not calculated for table value constructor
+--echo #
+
+CREATE TABLE t (a CHAR(1)) VALUES ('a'),('b'),('foo');
+
+GET DIAGNOSTICS CONDITION 1 @n= ROW_NUMBER;
+SELECT @n;
+
+DROP TABLE t;