Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0939bfc0
Commit
0939bfc0
authored
Jul 27, 2024
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19052 main.win postfix --view-protocol compat
Correct compatibility with view-protocol. Thanks Lena Startseva
parent
77885935
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
36 deletions
+30
-36
mysql-test/main/win.result
mysql-test/main/win.result
+12
-15
mysql-test/main/win.test
mysql-test/main/win.test
+6
-6
mysql-test/suite/encryption/r/tempfiles_encrypted.result
mysql-test/suite/encryption/r/tempfiles_encrypted.result
+12
-15
No files found.
mysql-test/main/win.result
View file @
0939bfc0
...
@@ -1276,47 +1276,44 @@ ERROR HY000: Integer is required for ROWS-type frame
...
@@ -1276,47 +1276,44 @@ ERROR HY000: Integer is required for ROWS-type frame
#
#
select
select
count(*) over (order by c
count(*) over (order by c
range between unbounded preceding and current row)
range between unbounded preceding and current row)
as r
from t1;
from t1;
count(*) over (order by c
r
range between unbounded preceding and current row)
1
1
2
2
select
select
count(*) over (order by c
count(*) over (order by c
range between current row and unbounded following)
range between current row and unbounded following)
as r
from t1;
from t1;
count(*) over (order by c
r
range between current row and unbounded following)
2
2
1
1
select
select
count(*) over (order by c
count(*) over (order by c
range between unbounded preceding and unbounded following)
range between unbounded preceding and unbounded following)
as r
from t1;
from t1;
count(*) over (order by c
r
range between unbounded preceding and unbounded following)
2
2
2
2
create table t2 (a int, b varchar(5));
create table t2 (a int, b varchar(5));
insert into t2 values (1,'a'), (2, 'b'), (3, 'c');
insert into t2 values (1,'a'), (2, 'b'), (3, 'c');
select sum(a) over (order by b range between unbounded preceding and current row) from t2;
select sum(a) over (order by b range between unbounded preceding and current row)
as r
from t2;
sum(a) over (order by b range between unbounded preceding and current row)
r
1
1
3
3
6
6
insert into t1 values (3,3,'goo');
insert into t1 values (3,3,'goo');
insert into t1 values (3,1,'har');
insert into t1 values (3,1,'har');
insert into t1 values (1,4,'har');
insert into t1 values (1,4,'har');
select a, b, sum(b) over (order by a, b desc range between unbounded preceding and current row) from t1;
select a, b, sum(b) over (order by a, b desc range between unbounded preceding and current row)
as r
from t1;
a b
sum(b) over (order by a, b desc range between unbounded preceding and current row)
a b
r
1 4 4
1 4 4
1 1 5
1 1 5
2 2 7
2 2 7
3 3 10
3 3 10
3 1 11
3 1 11
select a, b, sum(b) over (order by a desc, b range between unbounded preceding and current row) from t1;
select a, b, sum(b) over (order by a desc, b range between unbounded preceding and current row)
as r
from t1;
a b
sum(b) over (order by a desc, b range between unbounded preceding and current row)
a b
r
3 1 1
3 1 1
3 3 4
3 3 4
2 2 6
2 2 6
...
...
mysql-test/main/win.test
View file @
0939bfc0
...
@@ -818,31 +818,31 @@ from t1;
...
@@ -818,31 +818,31 @@ from t1;
select
select
count
(
*
)
over
(
order
by
c
count
(
*
)
over
(
order
by
c
range
between
unbounded
preceding
and
current
row
)
range
between
unbounded
preceding
and
current
row
)
as
r
from
t1
;
from
t1
;
select
select
count
(
*
)
over
(
order
by
c
count
(
*
)
over
(
order
by
c
range
between
current
row
and
unbounded
following
)
range
between
current
row
and
unbounded
following
)
as
r
from
t1
;
from
t1
;
select
select
count
(
*
)
over
(
order
by
c
count
(
*
)
over
(
order
by
c
range
between
unbounded
preceding
and
unbounded
following
)
range
between
unbounded
preceding
and
unbounded
following
)
as
r
from
t1
;
from
t1
;
create
table
t2
(
a
int
,
b
varchar
(
5
));
create
table
t2
(
a
int
,
b
varchar
(
5
));
insert
into
t2
values
(
1
,
'a'
),
(
2
,
'b'
),
(
3
,
'c'
);
insert
into
t2
values
(
1
,
'a'
),
(
2
,
'b'
),
(
3
,
'c'
);
select
sum
(
a
)
over
(
order
by
b
range
between
unbounded
preceding
and
current
row
)
from
t2
;
select
sum
(
a
)
over
(
order
by
b
range
between
unbounded
preceding
and
current
row
)
as
r
from
t2
;
insert
into
t1
values
(
3
,
3
,
'goo'
);
insert
into
t1
values
(
3
,
3
,
'goo'
);
insert
into
t1
values
(
3
,
1
,
'har'
);
insert
into
t1
values
(
3
,
1
,
'har'
);
insert
into
t1
values
(
1
,
4
,
'har'
);
insert
into
t1
values
(
1
,
4
,
'har'
);
select
a
,
b
,
sum
(
b
)
over
(
order
by
a
,
b
desc
range
between
unbounded
preceding
and
current
row
)
from
t1
;
select
a
,
b
,
sum
(
b
)
over
(
order
by
a
,
b
desc
range
between
unbounded
preceding
and
current
row
)
as
r
from
t1
;
select
a
,
b
,
sum
(
b
)
over
(
order
by
a
desc
,
b
range
between
unbounded
preceding
and
current
row
)
from
t1
;
select
a
,
b
,
sum
(
b
)
over
(
order
by
a
desc
,
b
range
between
unbounded
preceding
and
current
row
)
as
r
from
t1
;
drop
table
t2
;
drop
table
t2
;
delete
from
t1
where
a
>=
3
or
b
=
4
;
delete
from
t1
where
a
>=
3
or
b
=
4
;
...
...
mysql-test/suite/encryption/r/tempfiles_encrypted.result
View file @
0939bfc0
...
@@ -1282,47 +1282,44 @@ ERROR HY000: Integer is required for ROWS-type frame
...
@@ -1282,47 +1282,44 @@ ERROR HY000: Integer is required for ROWS-type frame
#
#
select
select
count(*) over (order by c
count(*) over (order by c
range between unbounded preceding and current row)
range between unbounded preceding and current row)
as r
from t1;
from t1;
count(*) over (order by c
r
range between unbounded preceding and current row)
1
1
2
2
select
select
count(*) over (order by c
count(*) over (order by c
range between current row and unbounded following)
range between current row and unbounded following)
as r
from t1;
from t1;
count(*) over (order by c
r
range between current row and unbounded following)
2
2
1
1
select
select
count(*) over (order by c
count(*) over (order by c
range between unbounded preceding and unbounded following)
range between unbounded preceding and unbounded following)
as r
from t1;
from t1;
count(*) over (order by c
r
range between unbounded preceding and unbounded following)
2
2
2
2
create table t2 (a int, b varchar(5));
create table t2 (a int, b varchar(5));
insert into t2 values (1,'a'), (2, 'b'), (3, 'c');
insert into t2 values (1,'a'), (2, 'b'), (3, 'c');
select sum(a) over (order by b range between unbounded preceding and current row) from t2;
select sum(a) over (order by b range between unbounded preceding and current row)
as r
from t2;
sum(a) over (order by b range between unbounded preceding and current row)
r
1
1
3
3
6
6
insert into t1 values (3,3,'goo');
insert into t1 values (3,3,'goo');
insert into t1 values (3,1,'har');
insert into t1 values (3,1,'har');
insert into t1 values (1,4,'har');
insert into t1 values (1,4,'har');
select a, b, sum(b) over (order by a, b desc range between unbounded preceding and current row) from t1;
select a, b, sum(b) over (order by a, b desc range between unbounded preceding and current row)
as r
from t1;
a b
sum(b) over (order by a, b desc range between unbounded preceding and current row)
a b
r
1 4 4
1 4 4
1 1 5
1 1 5
2 2 7
2 2 7
3 3 10
3 3 10
3 1 11
3 1 11
select a, b, sum(b) over (order by a desc, b range between unbounded preceding and current row) from t1;
select a, b, sum(b) over (order by a desc, b range between unbounded preceding and current row)
as r
from t1;
a b
sum(b) over (order by a desc, b range between unbounded preceding and current row)
a b
r
3 1 1
3 1 1
3 3 4
3 3 4
2 2 6
2 2 6
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment