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
6e9642be
Commit
6e9642be
authored
Jun 08, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
8149e4d0
dfa2d0bc
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
110 additions
and
17 deletions
+110
-17
cmake/FindJNI.cmake
cmake/FindJNI.cmake
+1
-1
debian/mariadb-plugin-connect.install
debian/mariadb-plugin-connect.install
+0
-4
mysql-test/main/derived_cond_pushdown.result
mysql-test/main/derived_cond_pushdown.result
+39
-0
mysql-test/main/derived_cond_pushdown.test
mysql-test/main/derived_cond_pushdown.test
+25
-0
mysql-test/suite/vcol/r/vcol_syntax.result
mysql-test/suite/vcol/r/vcol_syntax.result
+10
-1
mysql-test/suite/vcol/t/vcol_syntax.test
mysql-test/suite/vcol/t/vcol_syntax.test
+13
-4
sql/item.h
sql/item.h
+5
-2
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+4
-0
storage/innobase/buf/buf0rea.cc
storage/innobase/buf/buf0rea.cc
+8
-3
win/packaging/heidisql.cmake
win/packaging/heidisql.cmake
+1
-1
win/upgrade_wizard/upgradeDlg.cpp
win/upgrade_wizard/upgradeDlg.cpp
+4
-1
No files found.
cmake/FindJNI.cmake
View file @
6e9642be
if
(
JAVA_AWT_LIBRARY
)
if
(
JAVA_AWT_LIBRARY
AND JAVA_INCLUDE_PATH
)
set
(
JNI_FOUND TRUE
)
return
()
endif
()
...
...
debian/mariadb-plugin-connect.install
View file @
6e9642be
etc
/
mysql
/
conf
.
d
/
connect
.
cnf
etc
/
mysql
/
mariadb
.
conf
.
d
usr
/
lib
/
mysql
/
plugin
/
ha_connect
.
so
usr
/
share
/
mysql
/
Mongo2
.
jar
usr
/
share
/
mysql
/
Mongo3
.
jar
usr
/
share
/
mysql
/
JavaWrappers
.
jar
usr
/
share
/
mysql
/
JdbcInterface
.
jar
mysql-test/main/derived_cond_pushdown.result
View file @
6e9642be
...
...
@@ -10651,6 +10651,45 @@ m
7
drop view v1;
drop table t1;
#
# MDEV-25635: pushdown into grouping view using aggregate functions
# with constant arguments via a mergeable derived table
#
create table t1 (a int);
insert into t1 values (3), (7), (1), (3), (7), (7), (3);
create view v1 as select a, sum(1) as f, sum(1) as g from t1 group by a;
select * from v1;
a f g
1 1 1
3 3 3
7 3 3
select * from (select * from v1) as dt where a=f and a=g;
a f g
1 1 1
3 3 3
explain extended select * from (select * from v1) as dt where a=f and a=g;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 PRIMARY <derived3> ALL NULL NULL NULL NULL 7 100.00 Using where
3 DERIVED t1 ALL NULL NULL NULL NULL 7 100.00 Using temporary; Using filesort
Warnings:
Note 1003 /* select#1 */ select `v1`.`a` AS `a`,`v1`.`f` AS `f`,`v1`.`g` AS `g` from `test`.`v1` where `v1`.`a` = `v1`.`f` and `v1`.`a` = `v1`.`g`
create view v2 as select a, min(1) as f, min(1) as g from t1 group by a;
select * from v2;
a f g
1 1 1
3 1 1
7 1 1
select * from (select * from v2) as dt where a=f and a=g;
a f g
1 1 1
explain extended select * from (select * from v2) as dt where a=f and a=g;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 PRIMARY <derived3> ALL NULL NULL NULL NULL 7 100.00 Using where
3 DERIVED t1 ALL NULL NULL NULL NULL 7 100.00 Using temporary; Using filesort
Warnings:
Note 1003 /* select#1 */ select `v2`.`a` AS `a`,`v2`.`f` AS `f`,`v2`.`g` AS `g` from `test`.`v2` where `v2`.`a` = `v2`.`f` and `v2`.`a` = `v2`.`g`
drop view v1,v2;
drop table t1;
# End of 10.2 tests
#
# MDEV-14579: pushdown conditions into materialized views/derived tables
...
...
mysql-test/main/derived_cond_pushdown.test
View file @
6e9642be
...
...
@@ -2213,6 +2213,31 @@ select * from v1 where m > 0;
drop
view
v1
;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-25635: pushdown into grouping view using aggregate functions
--
echo
# with constant arguments via a mergeable derived table
--
echo
#
create
table
t1
(
a
int
);
insert
into
t1
values
(
3
),
(
7
),
(
1
),
(
3
),
(
7
),
(
7
),
(
3
);
create
view
v1
as
select
a
,
sum
(
1
)
as
f
,
sum
(
1
)
as
g
from
t1
group
by
a
;
select
*
from
v1
;
let
$q1
=
select
*
from
(
select
*
from
v1
)
as
dt
where
a
=
f
and
a
=
g
;
eval
$q1
;
eval
explain
extended
$q1
;
create
view
v2
as
select
a
,
min
(
1
)
as
f
,
min
(
1
)
as
g
from
t1
group
by
a
;
select
*
from
v2
;
let
$q2
=
select
*
from
(
select
*
from
v2
)
as
dt
where
a
=
f
and
a
=
g
;
eval
$q2
;
eval
explain
extended
$q2
;
drop
view
v1
,
v2
;
drop
table
t1
;
--
echo
# End of 10.2 tests
--
echo
#
...
...
mysql-test/suite/vcol/r/vcol_syntax.result
View file @
6e9642be
drop table if exists t1;
set @OLD_SQL_MODE=@@SESSION.SQL_MODE;
create table t1 (a int, b int generated always as (a+1));
show create table t1;
...
...
@@ -88,3 +87,13 @@ create table t1 (x int, y int default test2.t1.x);
ERROR 42S22: Unknown column '`test2`.`t1`.`x`' in 'DEFAULT'
create table t1 (x int, check (test2.t1.x > 0));
ERROR 42S22: Unknown column '`test2`.`t1`.`x`' in 'CHECK'
#
# MDEV-25672 table alias from previous statement interferes later commands
#
create table t1 (a int, v_a int generated always as (a));
update t1 as x set a = 1;
alter table t1 force;
drop table t1;
#
# End of 10.2 tests
#
mysql-test/suite/vcol/t/vcol_syntax.test
View file @
6e9642be
#
# test syntax
#
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
set
@
OLD_SQL_MODE
=@@
SESSION
.
SQL_MODE
;
create
table
t1
(
a
int
,
b
int
generated
always
as
(
a
+
1
));
show
create
table
t1
;
...
...
@@ -72,3 +68,16 @@ create table t1 (x int, y int check (y > test2.t1.x));
create
table
t1
(
x
int
,
y
int
default
test2
.
t1
.
x
);
--
error
ER_BAD_FIELD_ERROR
create
table
t1
(
x
int
,
check
(
test2
.
t1
.
x
>
0
));
--
echo
#
--
echo
# MDEV-25672 table alias from previous statement interferes later commands
--
echo
#
create
table
t1
(
a
int
,
v_a
int
generated
always
as
(
a
));
update
t1
as
x
set
a
=
1
;
alter
table
t1
force
;
drop
table
t1
;
--
echo
#
--
echo
# End of 10.2 tests
--
echo
#
sql/item.h
View file @
6e9642be
...
...
@@ -3198,7 +3198,7 @@ class Item_field :public Item_ident,
bool
check_table_name_processor
(
void
*
arg
)
{
Check_table_name_prm
&
p
=
*
(
Check_table_name_prm
*
)
arg
;
if
(
p
.
table_name
.
length
&&
table_name
)
if
(
!
field
&&
p
.
table_name
.
length
&&
table_name
)
{
DBUG_ASSERT
(
p
.
db
.
length
);
if
((
db_name
&&
...
...
@@ -5383,7 +5383,10 @@ class Item_direct_view_ref :public Item_direct_ref
table_map
used_tables
()
const
;
void
update_used_tables
();
table_map
not_null_tables
()
const
;
bool
const_item
()
const
{
return
used_tables
()
==
0
;
}
bool
const_item
()
const
{
return
(
*
ref
)
->
const_item
()
&&
(
null_ref_table
==
NO_NULL_TABLE
);
}
TABLE
*
get_null_ref_table
()
const
{
return
null_ref_table
;
}
bool
walk
(
Item_processor
processor
,
bool
walk_subquery
,
void
*
arg
)
{
...
...
storage/connect/CMakeLists.txt
View file @
6e9642be
...
...
@@ -13,6 +13,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
IF
(
WITHOUT_DYNAMIC_PLUGINS OR WITH_NONE
OR
(
"
${
PLUGIN_CONNECT
}
"
STREQUAL
"NO"
))
RETURN
()
ENDIF
()
SET
(
CONNECT_PLUGIN_STATIC
"connect"
)
SET
(
CONNECT_PLUGIN_DYNAMIC
"connect"
)
...
...
storage/innobase/buf/buf0rea.cc
View file @
6e9642be
/*****************************************************************************
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 202
0
, MariaDB Corporation.
Copyright (c) 2015, 202
1
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -806,13 +806,18 @@ buf_read_ibuf_merge_pages(
continue
;
}
if
(
UNIV_UNLIKELY
(
page_nos
[
i
]
>=
space
->
size
))
{
ulint
size
=
space
->
size
;
if
(
!
size
)
{
size
=
fil_space_get_size
(
space
->
id
);
}
if
(
UNIV_UNLIKELY
(
page_nos
[
i
]
>=
size
))
{
do
{
ibuf_delete_recs
(
page_id_t
(
space_ids
[
i
],
page_nos
[
i
]));
}
while
(
++
i
<
n_stored
&&
space_ids
[
i
-
1
]
==
space_ids
[
i
]
&&
page_nos
[
i
]
>=
s
pace
->
s
ize
);
&&
page_nos
[
i
]
>=
size
);
i
--
;
next:
space
->
release
();
...
...
win/packaging/heidisql.cmake
View file @
6e9642be
SET
(
HEIDISQL_BASE_NAME
"HeidiSQL_11.
2
_32_Portable"
)
SET
(
HEIDISQL_BASE_NAME
"HeidiSQL_11.
3
_32_Portable"
)
SET
(
HEIDISQL_ZIP
"
${
HEIDISQL_BASE_NAME
}
.zip"
)
SET
(
HEIDISQL_URL
"http://www.heidisql.com/downloads/releases/
${
HEIDISQL_ZIP
}
"
)
SET
(
HEIDISQL_DOWNLOAD_DIR
${
THIRD_PARTY_DOWNLOAD_LOCATION
}
/
${
HEIDISQL_BASE_NAME
}
)
...
...
win/upgrade_wizard/upgradeDlg.cpp
View file @
6e9642be
...
...
@@ -367,7 +367,10 @@ void CUpgradeDlg::UpgradeOneService(const string& servicename)
ErrorExit
(
"Stdout SetHandleInformation"
);
string
commandline
(
"mysql_upgrade_service.exe --service="
);
commandline
+=
"
\"
"
;
commandline
+=
servicename
;
commandline
+=
"
\"
"
;
si
.
cb
=
sizeof
(
si
);
si
.
hStdInput
=
GetStdHandle
(
STD_INPUT_HANDLE
);
si
.
hStdOutput
=
hPipeWrite
;
...
...
@@ -397,7 +400,7 @@ void CUpgradeDlg::UpgradeOneService(const string& servicename)
else
{
/*
Creating a process with CREATE_BREAKAWAY_FROM_JOB, reset this flag
Creating a process with CREATE_BREAKAWAY_FROM_JOB
failed
, reset this flag
and retry.
*/
if
(
!
CreateProcess
(
NULL
,
(
LPSTR
)
commandline
.
c_str
(),
NULL
,
NULL
,
TRUE
,
...
...
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