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
941bc705
Commit
941bc705
authored
Feb 09, 2022
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.2' into bb-10.2-release
parents
e2b50213
c0a44ff7
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
110 additions
and
9 deletions
+110
-9
VERSION
VERSION
+1
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-1
mysql-test/r/win.result
mysql-test/r/win.result
+32
-0
mysql-test/suite/encryption/r/tempfiles_encrypted.result
mysql-test/suite/encryption/r/tempfiles_encrypted.result
+32
-0
mysql-test/suite/rpl/t/rpl_relay_max_extension.test
mysql-test/suite/rpl/t/rpl_relay_max_extension.test
+2
-0
mysql-test/t/win.test
mysql-test/t/win.test
+27
-0
scripts/wsrep_sst_mariabackup.sh
scripts/wsrep_sst_mariabackup.sh
+4
-1
scripts/wsrep_sst_mysqldump.sh
scripts/wsrep_sst_mysqldump.sh
+4
-1
scripts/wsrep_sst_rsync.sh
scripts/wsrep_sst_rsync.sh
+4
-2
sql/item_windowfunc.cc
sql/item_windowfunc.cc
+3
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+0
-3
No files found.
VERSION
View file @
941bc705
MYSQL_VERSION_MAJOR=10
MYSQL_VERSION_MINOR=2
MYSQL_VERSION_PATCH=4
2
MYSQL_VERSION_PATCH=4
3
mysql-test/mysql-test-run.pl
View file @
941bc705
...
...
@@ -1908,7 +1908,7 @@ sub collect_mysqld_features_from_running_server ()
}
mtr_add_arg
(
$args
,
"
--silent
");
# Tab separated output
mtr_add_arg
(
$args
,
"
-e
'%s'
",
"
use mysql; SHOW VARIABLES
");
mtr_add_arg
(
$args
,
"
-e
\"
use mysql; SHOW VARIABLES
\"
");
my
$cmd
=
"
$mysql
"
.
join
('
',
@$args
);
mtr_verbose
("
cmd:
$cmd
");
...
...
mysql-test/r/win.result
View file @
941bc705
...
...
@@ -4198,5 +4198,37 @@ drop procedure sp7;
drop view v1,v2;
drop table t1;
#
# MDEV-17785: Window functions not working in ONLY_FULL_GROUP_BY mode
#
CREATE TABLE t1(a VARCHAR(10), b int);
INSERT INTO t1 VALUES
('Maths', 60),('Maths', 60),
('Maths', 70),('Maths', 55),
('Biology', 60), ('Biology', 70);
SET @save_sql_mode= @@sql_mode;
SET sql_mode = 'ONLY_FULL_GROUP_BY';
SELECT
RANK() OVER (PARTITION BY a ORDER BY b) AS rank,
a, b FROM t1 ORDER BY a, b DESC;
rank a b
2 Biology 70
1 Biology 60
4 Maths 70
2 Maths 60
2 Maths 60
1 Maths 55
SET sql_mode= @save_sql_mode;
DROP TABLE t1;
CREATE TABLE t1(i int,j int);
INSERT INTO t1 VALUES (1,1), (1,5),(1,4), (2,2),(2,5), (3,3),(4,4);
INSERT INTO t1 VALUES (1,1), (1,5),(1,4), (2,2),(2,5), (3,3),(4,4);
SELECT i, LAST_VALUE(COUNT(i)) OVER (PARTITION BY i ORDER BY j) FROM t1 GROUP BY i;
i LAST_VALUE(COUNT(i)) OVER (PARTITION BY i ORDER BY j)
1 6
2 4
3 2
4 2
DROP TABLE t1;
#
# End of 10.2 tests
#
mysql-test/suite/encryption/r/tempfiles_encrypted.result
View file @
941bc705
...
...
@@ -4204,6 +4204,38 @@ drop procedure sp7;
drop view v1,v2;
drop table t1;
#
# MDEV-17785: Window functions not working in ONLY_FULL_GROUP_BY mode
#
CREATE TABLE t1(a VARCHAR(10), b int);
INSERT INTO t1 VALUES
('Maths', 60),('Maths', 60),
('Maths', 70),('Maths', 55),
('Biology', 60), ('Biology', 70);
SET @save_sql_mode= @@sql_mode;
SET sql_mode = 'ONLY_FULL_GROUP_BY';
SELECT
RANK() OVER (PARTITION BY a ORDER BY b) AS rank,
a, b FROM t1 ORDER BY a, b DESC;
rank a b
2 Biology 70
1 Biology 60
4 Maths 70
2 Maths 60
2 Maths 60
1 Maths 55
SET sql_mode= @save_sql_mode;
DROP TABLE t1;
CREATE TABLE t1(i int,j int);
INSERT INTO t1 VALUES (1,1), (1,5),(1,4), (2,2),(2,5), (3,3),(4,4);
INSERT INTO t1 VALUES (1,1), (1,5),(1,4), (2,2),(2,5), (3,3),(4,4);
SELECT i, LAST_VALUE(COUNT(i)) OVER (PARTITION BY i ORDER BY j) FROM t1 GROUP BY i;
i LAST_VALUE(COUNT(i)) OVER (PARTITION BY i ORDER BY j)
1 6
2 4
3 2
4 2
DROP TABLE t1;
#
# End of 10.2 tests
#
#
...
...
mysql-test/suite/rpl/t/rpl_relay_max_extension.test
View file @
941bc705
...
...
@@ -28,6 +28,8 @@
# showed
#
# MDEV-27721 rpl.rpl_relay_max_extension test is not FreeBSD-compatible
--
source
include
/
linux
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
--
let
$rpl_topology
=
1
->
2
...
...
mysql-test/t/win.test
View file @
941bc705
...
...
@@ -2703,6 +2703,33 @@ drop procedure sp7;
drop
view
v1
,
v2
;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-17785: Window functions not working in ONLY_FULL_GROUP_BY mode
--
echo
#
CREATE
TABLE
t1
(
a
VARCHAR
(
10
),
b
int
);
INSERT
INTO
t1
VALUES
(
'Maths'
,
60
),(
'Maths'
,
60
),
(
'Maths'
,
70
),(
'Maths'
,
55
),
(
'Biology'
,
60
),
(
'Biology'
,
70
);
SET
@
save_sql_mode
=
@@
sql_mode
;
SET
sql_mode
=
'ONLY_FULL_GROUP_BY'
;
SELECT
RANK
()
OVER
(
PARTITION
BY
a
ORDER
BY
b
)
AS
rank
,
a
,
b
FROM
t1
ORDER
BY
a
,
b
DESC
;
SET
sql_mode
=
@
save_sql_mode
;
DROP
TABLE
t1
;
CREATE
TABLE
t1
(
i
int
,
j
int
);
INSERT
INTO
t1
VALUES
(
1
,
1
),
(
1
,
5
),(
1
,
4
),
(
2
,
2
),(
2
,
5
),
(
3
,
3
),(
4
,
4
);
INSERT
INTO
t1
VALUES
(
1
,
1
),
(
1
,
5
),(
1
,
4
),
(
2
,
2
),(
2
,
5
),
(
3
,
3
),(
4
,
4
);
SELECT
i
,
LAST_VALUE
(
COUNT
(
i
))
OVER
(
PARTITION
BY
i
ORDER
BY
j
)
FROM
t1
GROUP
BY
i
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 10.2 tests
--
echo
#
scripts/wsrep_sst_mariabackup.sh
View file @
941bc705
#!/bin/bash -ue
#!/usr/bin/env bash
set
-ue
# Copyright (C) 2017-2021 MariaDB
# Copyright (C) 2013 Percona Inc
#
...
...
scripts/wsrep_sst_mysqldump.sh
View file @
941bc705
#!/bin/bash -ue
#!/usr/bin/env bash
set
-ue
# Copyright (C) 2009-2015 Codership Oy
# Copyright (C) 2017-2021 MariaDB
#
...
...
scripts/wsrep_sst_rsync.sh
View file @
941bc705
#!/bin/bash -ue
#!/usr/bin/env bash
set
-ue
# Copyright (C) 2017-2021 MariaDB
# Copyright (C) 2010-2014 Codership Oy
...
...
@@ -740,7 +742,7 @@ EOF
elif
[
"
$OS
"
=
'Linux'
]
;
then
tmpfile
=
$(
mktemp
"--tmpdir=
$tmpdir
"
)
else
tmpfile
=
$(
TMPDIR
=
"
$tmpdir
"
;
mktemp
'-d'
)
tmpfile
=
$(
TMPDIR
=
"
$tmpdir
"
;
mktemp
)
fi
wsrep_log_info
"Extracting binlog files:"
...
...
sql/item_windowfunc.cc
View file @
941bc705
...
...
@@ -93,6 +93,9 @@ Item_window_func::fix_fields(THD *thd, Item **ref)
my_error
(
ER_NO_ORDER_LIST_IN_WINDOW_SPEC
,
MYF
(
0
),
window_func
()
->
func_name
());
return
true
;
}
window_func
()
->
mark_as_window_func_sum_expr
();
/*
TODO: why the last parameter is 'ref' in this call? What if window_func
decides to substitute itself for something else and does *ref=.... ?
...
...
sql/sql_yacc.yy
View file @
941bc705
...
...
@@ -10557,9 +10557,6 @@ window_func:
simple_window_func
|
sum_expr
{
((Item_sum *) $1)->mark_as_window_func_sum_expr();
}
;
simple_window_func:
...
...
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