Skip to content

Commit 0438f12

Browse files
committed
MDEV-6980 OUT parameters in PREPARE
revert the patch for "out parameters in prepare"
1 parent 717a264 commit 0438f12

16 files changed

+10
-370
lines changed

mysql-test/include/ps_conv.inc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,9 @@ execute stmt1 using @my_key ;
256256
execute full_info ;
257257
--disable_metadata
258258

259-
# the next statement does not fail anymore
259+
# the next statement must fail
260+
--error 1064
260261
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
261-
execute stmt1 using @result;
262-
--enable_metadata
263-
execute full_info ;
264-
--disable_metadata
265-
select @result;
266-
267262

268263

269264

mysql-test/r/compound.result

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ master-bin.000001 # Query # # COMMIT
3636
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
3737
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (6)
3838
master-bin.000001 # Query # # COMMIT
39-
PREPARE stmt FROM "BEGIN NOT ATOMIC
40-
DECLARE v_res INT;
41-
SELECT COUNT(*) INTO v_res FROM t1;
42-
SELECT 'Hello World', v_res INTO ?,?;
43-
END"|
44-
SET @val="", @val2=""|
45-
EXECUTE stmt USING @val, @val2|
46-
SELECT @val, @val2|
47-
@val @val2
48-
Hello World 6
4939
DROP TABLE t1|
5040
CREATE DATABASE mysqltest1|
5141
CREATE PROCEDURE mysqltest1.sp1()

mysql-test/r/ps_2myisam.result

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,46 +2265,7 @@ def @arg32 250 16777215 0 Y 0 31 8
22652265
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
22662266
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
22672267
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
2268-
execute stmt1 using @result;
2269-
execute full_info ;
2270-
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
2271-
def @arg01 8 20 1 Y 32896 0 63
2272-
def @arg02 8 20 0 Y 32896 0 63
2273-
def @arg03 8 20 0 Y 32896 0 63
2274-
def @arg04 8 20 0 Y 32896 0 63
2275-
def @arg05 8 20 0 Y 32896 0 63
2276-
def @arg06 8 20 0 Y 32896 0 63
2277-
def @arg07 5 23 0 Y 32896 31 63
2278-
def @arg08 5 23 0 Y 32896 31 63
2279-
def @arg09 5 23 0 Y 32896 31 63
2280-
def @arg10 5 23 0 Y 32896 31 63
2281-
def @arg11 246 83 0 Y 32896 30 63
2282-
def @arg12 246 83 0 Y 32896 30 63
2283-
def @arg13 250 16777215 0 Y 0 31 8
2284-
def @arg14 250 16777215 0 Y 0 31 8
2285-
def @arg15 250 16777215 19 Y 0 31 8
2286-
def @arg16 250 16777215 0 Y 0 31 8
2287-
def @arg17 8 20 0 Y 32928 0 63
2288-
def @arg18 8 20 0 Y 32896 0 63
2289-
def @arg19 8 20 0 Y 32896 0 63
2290-
def @arg20 250 16777215 0 Y 0 31 8
2291-
def @arg21 250 16777215 0 Y 0 31 8
2292-
def @arg22 250 16777215 0 Y 0 31 8
2293-
def @arg23 250 16777215 0 Y 128 31 63
2294-
def @arg24 250 16777215 0 Y 0 31 8
2295-
def @arg25 250 16777215 0 Y 128 31 63
2296-
def @arg26 250 16777215 0 Y 0 31 8
2297-
def @arg27 250 16777215 0 Y 128 31 63
2298-
def @arg28 250 16777215 0 Y 0 31 8
2299-
def @arg29 250 16777215 0 Y 128 31 63
2300-
def @arg30 250 16777215 0 Y 0 31 8
2301-
def @arg31 250 16777215 0 Y 0 31 8
2302-
def @arg32 250 16777215 0 Y 0 31 8
2303-
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
2304-
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
2305-
select @result;
2306-
@result
2307-
1
2268+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
23082269
test_sequence
23092270
-- insert into numeric columns --
23102271
insert into t9

mysql-test/r/ps_3innodb.result

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,46 +2248,7 @@ def @arg32 250 16777215 0 Y 0 31 8
22482248
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
22492249
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
22502250
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
2251-
execute stmt1 using @result;
2252-
execute full_info ;
2253-
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
2254-
def @arg01 8 20 1 Y 32896 0 63
2255-
def @arg02 8 20 0 Y 32896 0 63
2256-
def @arg03 8 20 0 Y 32896 0 63
2257-
def @arg04 8 20 0 Y 32896 0 63
2258-
def @arg05 8 20 0 Y 32896 0 63
2259-
def @arg06 8 20 0 Y 32896 0 63
2260-
def @arg07 5 23 0 Y 32896 31 63
2261-
def @arg08 5 23 0 Y 32896 31 63
2262-
def @arg09 5 23 0 Y 32896 31 63
2263-
def @arg10 5 23 0 Y 32896 31 63
2264-
def @arg11 246 83 0 Y 32896 30 63
2265-
def @arg12 246 83 0 Y 32896 30 63
2266-
def @arg13 250 16777215 0 Y 0 31 8
2267-
def @arg14 250 16777215 0 Y 0 31 8
2268-
def @arg15 250 16777215 19 Y 0 31 8
2269-
def @arg16 250 16777215 0 Y 0 31 8
2270-
def @arg17 8 20 0 Y 32928 0 63
2271-
def @arg18 8 20 0 Y 32896 0 63
2272-
def @arg19 8 20 0 Y 32896 0 63
2273-
def @arg20 250 16777215 0 Y 0 31 8
2274-
def @arg21 250 16777215 0 Y 0 31 8
2275-
def @arg22 250 16777215 0 Y 0 31 8
2276-
def @arg23 250 16777215 0 Y 128 31 63
2277-
def @arg24 250 16777215 0 Y 0 31 8
2278-
def @arg25 250 16777215 0 Y 128 31 63
2279-
def @arg26 250 16777215 0 Y 0 31 8
2280-
def @arg27 250 16777215 0 Y 128 31 63
2281-
def @arg28 250 16777215 0 Y 0 31 8
2282-
def @arg29 250 16777215 0 Y 128 31 63
2283-
def @arg30 250 16777215 0 Y 0 31 8
2284-
def @arg31 250 16777215 0 Y 0 31 8
2285-
def @arg32 250 16777215 0 Y 0 31 8
2286-
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
2287-
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
2288-
select @result;
2289-
@result
2290-
1
2251+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
22912252
test_sequence
22922253
-- insert into numeric columns --
22932254
insert into t9

mysql-test/r/ps_4heap.result

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,46 +2249,7 @@ def @arg32 250 16777215 0 Y 0 31 8
22492249
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
22502250
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
22512251
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
2252-
execute stmt1 using @result;
2253-
execute full_info ;
2254-
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
2255-
def @arg01 8 20 1 Y 32896 0 63
2256-
def @arg02 8 20 0 Y 32896 0 63
2257-
def @arg03 8 20 0 Y 32896 0 63
2258-
def @arg04 8 20 0 Y 32896 0 63
2259-
def @arg05 8 20 0 Y 32896 0 63
2260-
def @arg06 8 20 0 Y 32896 0 63
2261-
def @arg07 5 23 0 Y 32896 31 63
2262-
def @arg08 5 23 0 Y 32896 31 63
2263-
def @arg09 5 23 0 Y 32896 31 63
2264-
def @arg10 5 23 0 Y 32896 31 63
2265-
def @arg11 246 83 0 Y 32896 30 63
2266-
def @arg12 246 83 0 Y 32896 30 63
2267-
def @arg13 250 16777215 0 Y 0 31 8
2268-
def @arg14 250 16777215 0 Y 0 31 8
2269-
def @arg15 250 16777215 19 Y 0 31 8
2270-
def @arg16 250 16777215 0 Y 0 31 8
2271-
def @arg17 8 20 0 Y 32928 0 63
2272-
def @arg18 8 20 0 Y 32896 0 63
2273-
def @arg19 8 20 0 Y 32896 0 63
2274-
def @arg20 250 16777215 0 Y 0 31 8
2275-
def @arg21 250 16777215 0 Y 0 31 8
2276-
def @arg22 250 16777215 0 Y 0 31 8
2277-
def @arg23 250 16777215 0 Y 0 31 8
2278-
def @arg24 250 16777215 0 Y 0 31 8
2279-
def @arg25 250 16777215 0 Y 0 31 8
2280-
def @arg26 250 16777215 0 Y 0 31 8
2281-
def @arg27 250 16777215 0 Y 0 31 8
2282-
def @arg28 250 16777215 0 Y 0 31 8
2283-
def @arg29 250 16777215 0 Y 0 31 8
2284-
def @arg30 250 16777215 0 Y 0 31 8
2285-
def @arg31 250 16777215 0 Y 0 31 8
2286-
def @arg32 250 16777215 0 Y 0 31 8
2287-
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
2288-
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
2289-
select @result;
2290-
@result
2291-
1
2252+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
22922253
test_sequence
22932254
-- insert into numeric columns --
22942255
insert into t9

mysql-test/r/ps_5merge.result

Lines changed: 2 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,46 +2185,7 @@ def @arg32 250 16777215 0 Y 0 31 8
21852185
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
21862186
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
21872187
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
2188-
execute stmt1 using @result;
2189-
execute full_info ;
2190-
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
2191-
def @arg01 8 20 1 Y 32896 0 63
2192-
def @arg02 8 20 0 Y 32896 0 63
2193-
def @arg03 8 20 0 Y 32896 0 63
2194-
def @arg04 8 20 0 Y 32896 0 63
2195-
def @arg05 8 20 0 Y 32896 0 63
2196-
def @arg06 8 20 0 Y 32896 0 63
2197-
def @arg07 5 23 0 Y 32896 31 63
2198-
def @arg08 5 23 0 Y 32896 31 63
2199-
def @arg09 5 23 0 Y 32896 31 63
2200-
def @arg10 5 23 0 Y 32896 31 63
2201-
def @arg11 246 83 0 Y 32896 30 63
2202-
def @arg12 246 83 0 Y 32896 30 63
2203-
def @arg13 250 16777215 0 Y 0 31 8
2204-
def @arg14 250 16777215 0 Y 0 31 8
2205-
def @arg15 250 16777215 19 Y 0 31 8
2206-
def @arg16 250 16777215 0 Y 0 31 8
2207-
def @arg17 8 20 0 Y 32928 0 63
2208-
def @arg18 8 20 0 Y 32896 0 63
2209-
def @arg19 8 20 0 Y 32896 0 63
2210-
def @arg20 250 16777215 0 Y 0 31 8
2211-
def @arg21 250 16777215 0 Y 0 31 8
2212-
def @arg22 250 16777215 0 Y 0 31 8
2213-
def @arg23 250 16777215 0 Y 128 31 63
2214-
def @arg24 250 16777215 0 Y 0 31 8
2215-
def @arg25 250 16777215 0 Y 128 31 63
2216-
def @arg26 250 16777215 0 Y 0 31 8
2217-
def @arg27 250 16777215 0 Y 128 31 63
2218-
def @arg28 250 16777215 0 Y 0 31 8
2219-
def @arg29 250 16777215 0 Y 128 31 63
2220-
def @arg30 250 16777215 0 Y 0 31 8
2221-
def @arg31 250 16777215 0 Y 0 31 8
2222-
def @arg32 250 16777215 0 Y 0 31 8
2223-
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
2224-
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
2225-
select @result;
2226-
@result
2227-
1
2188+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
22282189
test_sequence
22292190
-- insert into numeric columns --
22302191
insert into t9
@@ -5578,46 +5539,7 @@ def @arg32 250 16777215 0 Y 0 31 8
55785539
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
55795540
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
55805541
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
5581-
execute stmt1 using @result;
5582-
execute full_info ;
5583-
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
5584-
def @arg01 8 20 1 Y 32896 0 63
5585-
def @arg02 8 20 0 Y 32896 0 63
5586-
def @arg03 8 20 0 Y 32896 0 63
5587-
def @arg04 8 20 0 Y 32896 0 63
5588-
def @arg05 8 20 0 Y 32896 0 63
5589-
def @arg06 8 20 0 Y 32896 0 63
5590-
def @arg07 5 23 0 Y 32896 31 63
5591-
def @arg08 5 23 0 Y 32896 31 63
5592-
def @arg09 5 23 0 Y 32896 31 63
5593-
def @arg10 5 23 0 Y 32896 31 63
5594-
def @arg11 246 83 0 Y 32896 30 63
5595-
def @arg12 246 83 0 Y 32896 30 63
5596-
def @arg13 250 16777215 0 Y 0 31 8
5597-
def @arg14 250 16777215 0 Y 0 31 8
5598-
def @arg15 250 16777215 19 Y 0 31 8
5599-
def @arg16 250 16777215 0 Y 0 31 8
5600-
def @arg17 8 20 0 Y 32928 0 63
5601-
def @arg18 8 20 0 Y 32896 0 63
5602-
def @arg19 8 20 0 Y 32896 0 63
5603-
def @arg20 250 16777215 0 Y 0 31 8
5604-
def @arg21 250 16777215 0 Y 0 31 8
5605-
def @arg22 250 16777215 0 Y 0 31 8
5606-
def @arg23 250 16777215 0 Y 128 31 63
5607-
def @arg24 250 16777215 0 Y 0 31 8
5608-
def @arg25 250 16777215 0 Y 128 31 63
5609-
def @arg26 250 16777215 0 Y 0 31 8
5610-
def @arg27 250 16777215 0 Y 128 31 63
5611-
def @arg28 250 16777215 0 Y 0 31 8
5612-
def @arg29 250 16777215 0 Y 128 31 63
5613-
def @arg30 250 16777215 0 Y 0 31 8
5614-
def @arg31 250 16777215 0 Y 0 31 8
5615-
def @arg32 250 16777215 0 Y 0 31 8
5616-
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
5617-
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
5618-
select @result;
5619-
@result
5620-
1
5542+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
56215543
test_sequence
56225544
-- insert into numeric columns --
56235545
insert into t9

mysql-test/suite/maria/ps_maria.result

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,46 +2265,7 @@ def @arg32 250 16777215 0 Y 0 31 8
22652265
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
22662266
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
22672267
prepare stmt1 from "select c1 into ? from t9 where c1= 1" ;
2268-
execute stmt1 using @result;
2269-
execute full_info ;
2270-
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
2271-
def @arg01 8 20 1 Y 32896 0 63
2272-
def @arg02 8 20 0 Y 32896 0 63
2273-
def @arg03 8 20 0 Y 32896 0 63
2274-
def @arg04 8 20 0 Y 32896 0 63
2275-
def @arg05 8 20 0 Y 32896 0 63
2276-
def @arg06 8 20 0 Y 32896 0 63
2277-
def @arg07 5 23 0 Y 32896 31 63
2278-
def @arg08 5 23 0 Y 32896 31 63
2279-
def @arg09 5 23 0 Y 32896 31 63
2280-
def @arg10 5 23 0 Y 32896 31 63
2281-
def @arg11 246 83 0 Y 32896 30 63
2282-
def @arg12 246 83 0 Y 32896 30 63
2283-
def @arg13 250 16777215 0 Y 0 31 8
2284-
def @arg14 250 16777215 0 Y 0 31 8
2285-
def @arg15 250 16777215 19 Y 0 31 8
2286-
def @arg16 250 16777215 0 Y 0 31 8
2287-
def @arg17 8 20 0 Y 32928 0 63
2288-
def @arg18 8 20 0 Y 32896 0 63
2289-
def @arg19 8 20 0 Y 32896 0 63
2290-
def @arg20 250 16777215 0 Y 0 31 8
2291-
def @arg21 250 16777215 0 Y 0 31 8
2292-
def @arg22 250 16777215 0 Y 0 31 8
2293-
def @arg23 250 16777215 0 Y 128 31 63
2294-
def @arg24 250 16777215 0 Y 0 31 8
2295-
def @arg25 250 16777215 0 Y 128 31 63
2296-
def @arg26 250 16777215 0 Y 0 31 8
2297-
def @arg27 250 16777215 0 Y 128 31 63
2298-
def @arg28 250 16777215 0 Y 0 31 8
2299-
def @arg29 250 16777215 0 Y 128 31 63
2300-
def @arg30 250 16777215 0 Y 0 31 8
2301-
def @arg31 250 16777215 0 Y 0 31 8
2302-
def @arg32 250 16777215 0 Y 0 31 8
2303-
@arg01 @arg02 @arg03 @arg04 @arg05 @arg06 @arg07 @arg08 @arg09 @arg10 @arg11 @arg12 @arg13 @arg14 @arg15 @arg16 @arg17 @arg18 @arg19 @arg20 @arg21 @arg22 @arg23 @arg24 @arg25 @arg26 @arg27 @arg28 @arg29 @arg30 @arg31 @arg32
2304-
0 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1991-01-01 01:01:01 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
2305-
select @result;
2306-
@result
2307-
1
2268+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? from t9 where c1= 1' at line 1
23082269
test_sequence
23092270
-- insert into numeric columns --
23102271
insert into t9

mysql-test/suite/rpl/r/prepare_select_into.result

Lines changed: 0 additions & 26 deletions
This file was deleted.

mysql-test/suite/rpl/t/prepare_select_into.test

Lines changed: 0 additions & 27 deletions
This file was deleted.

mysql-test/t/compound.test

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ delimiter ;|
2828
source include/show_binlog_events.inc;
2929
delimiter |;
3030

31-
PREPARE stmt FROM "BEGIN NOT ATOMIC
32-
DECLARE v_res INT;
33-
SELECT COUNT(*) INTO v_res FROM t1;
34-
SELECT 'Hello World', v_res INTO ?,?;
35-
END"|
36-
SET @val="", @val2=""|
37-
EXECUTE stmt USING @val, @val2|
38-
SELECT @val, @val2|
3931
DROP TABLE t1|
4032

4133
#

0 commit comments

Comments
 (0)