mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Fixed issues in test suite when running with --ps-protocol
mysql-test/t/features.test: --ps-protocol counts both prepare and execute mysql-test/t/last_value.test: Disable ps-protocol for metadata tests
This commit is contained in:
parent
6f94b5c76d
commit
0704d47007
2 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,8 @@ select * from t1 where MATCH(a,b) AGAINST ("collections");
|
|||
select * from t1 where MATCH(a,b) AGAINST ("indexes");
|
||||
drop table t1;
|
||||
|
||||
# We need the following when running with --ps-protocol
|
||||
--replace_result 4 2
|
||||
show status like "feature_fulltext";
|
||||
|
||||
|
||||
|
@ -68,6 +70,7 @@ create table t1 (a int);
|
|||
insert into t1 values (2);
|
||||
select (select a from t1 where t1.a=t2.a), a from t1 as t2;
|
||||
drop table t1;
|
||||
--replace_result 8 4
|
||||
show status like "feature_subquery";
|
||||
|
||||
--echo #
|
||||
|
@ -104,4 +107,5 @@ SET @xml='<a aa1="aa1" aa2="aa2">a1<b ba1="ba1">b1<c>c1</c>b2</b>a2</a>';
|
|||
SELECT extractValue(@xml,'/a');
|
||||
select updatexml('<div><div><span>1</span><span>2</span></div></div>',
|
||||
'/','<tr><td>1</td><td>2</td></tr>') as upd1;
|
||||
--replace_result 4 2
|
||||
show status like "feature_xml";
|
||||
|
|
|
@ -27,9 +27,12 @@ DROP TABLE t1;
|
|||
#
|
||||
# Test with different types
|
||||
#
|
||||
# PS protocol gives slightly different metadata for the length
|
||||
--enable_metadata
|
||||
--disable_ps_protocol
|
||||
SELECT LAST_VALUE(@last_a:=1,@last_b:=1);
|
||||
select @last_b;
|
||||
--enable_ps_protocol
|
||||
SELECT LAST_VALUE(@last_a:=1,@last_b:=1.0);
|
||||
select @last_b;
|
||||
SELECT LAST_VALUE(@last_a:=1,@last_b:="hello");
|
||||
|
|
Loading…
Add table
Reference in a new issue