Commit 2db692f5 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

MDEV-26180: Enable test main.sp-row after the 10.5 merge

parent 7ae6ef52
if (`SELECT $PS_PROTOCOL != 0`)
{
--skip Test temporarily disabled for ps-protocol
}
--source include/default_optimizer_switch.inc
create table t1 (a int, b varchar(32));
......
......@@ -2,11 +2,6 @@
# simple test of all group functions
#
if (`SELECT $PS_PROTOCOL != 0`)
{
--skip Test temporarily disabled for ps-protocol
}
--disable_warnings
drop table if exists t1,t2,t3,t4,t5,t6;
--enable_warnings
......
......@@ -228,6 +228,7 @@ CREATE FUNCTION f1(a INT) RETURNS INT
BEGIN
RETURN a;
END;
$$
CREATE PROCEDURE p1()
BEGIN
DECLARE a ROW (a INT,b INT);
......
......@@ -2,11 +2,6 @@
--echo # MDEV-10914 ROW data type for stored routine variables
--echo #
if (`SELECT $PS_PROTOCOL != 0`)
{
--skip Test temporarily disabled for ps-protocol
}
--echo #
--echo # ROW of ROWs is not supported yet
--echo #
......@@ -304,6 +299,7 @@ CREATE FUNCTION f1(a INT) RETURNS INT
BEGIN
RETURN a;
END;
$$
CREATE PROCEDURE p1()
BEGIN
DECLARE a ROW (a INT,b INT);
......@@ -1340,6 +1336,7 @@ DROP PROCEDURE p1;
--echo # ROW variable with a wrong column count
--enable_prepare_warnings
CREATE TABLE t1 (a INT, b VARCHAR(32));
INSERT INTO t1 VALUES (10,'b10');
DELIMITER $$;
......@@ -1351,6 +1348,7 @@ BEGIN
END;
$$
DELIMITER ;$$
--disable_prepare_warnings
--error ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT
CALL p1();
DROP TABLE t1;
......@@ -1360,6 +1358,7 @@ DROP PROCEDURE p1;
--echo # Multiple ROW variables
CREATE TABLE t1 (a INT, b VARCHAR(32));
INSERT INTO t1 VALUES (10,'b10');
--enable_prepare_warnings
DELIMITER $$;
CREATE PROCEDURE p1()
BEGIN
......@@ -1369,6 +1368,7 @@ BEGIN
END;
$$
DELIMITER ;$$
--disable_prepare_warnings
--error ER_OPERAND_COLUMNS
CALL p1();
DROP TABLE t1;
......@@ -1378,6 +1378,7 @@ DROP PROCEDURE p1;
--echo # ROW variables working example
CREATE TABLE t1 (a INT, b VARCHAR(32));
INSERT INTO t1 VALUES (10,'b10');
--enable_prepare_warnings
DELIMITER $$;
CREATE PROCEDURE p1()
BEGIN
......@@ -1387,6 +1388,7 @@ BEGIN
END;
$$
DELIMITER ;$$
--disable_prepare_warnings
CALL p1();
DROP TABLE t1;
DROP PROCEDURE p1;
......
if (`SELECT $PS_PROTOCOL != 0`)
{
--skip Test temporarily disabled for ps-protocol
}
--source include/not_embedded.inc
if (!$TEST_SQL_SERVICE_SO) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment