mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
72ba96a48e
Tests with checking metadata or that cannot be run with the view-protocol are excluded from --view-protocol. For tests that do not allow the use of an additional connection, the util connection is disabled with "--disable_service_connection". Also cases with bugs for --view-protocol are disabled.
35 lines
585 B
Text
35 lines
585 B
Text
#
|
|
# Tests for window functions and ORDER BY
|
|
#
|
|
|
|
--disable_warnings
|
|
drop table if exists t0,t1;
|
|
--enable_warnings
|
|
|
|
create table t0(a int primary key);
|
|
insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
|
|
|
create table t1(
|
|
pk int,
|
|
a int,
|
|
key(pk)
|
|
);
|
|
|
|
insert into t1
|
|
select
|
|
A.a + B.a* 10 + C.a * 100,
|
|
1
|
|
from t0 A, t0 B, t0 C;
|
|
|
|
#enable after fix MDEV-27871
|
|
--disable_view_protocol
|
|
select
|
|
pk,
|
|
count(a) over (order by pk rows between 2 preceding and 2 following)
|
|
from t1
|
|
where pk between 1 and 30
|
|
order by pk desc
|
|
limit 4;
|
|
--disable_view_protocol
|
|
|
|
drop table t0,t1;
|