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
affdd79c
Commit
affdd79c
authored
Aug 03, 2018
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.1' into 10.2
parents
e6a808be
701f0b8e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
sql/opt_range.cc
sql/opt_range.cc
+3
-2
sql/sql_acl.cc
sql/sql_acl.cc
+3
-1
sql/sql_class.h
sql/sql_class.h
+4
-0
sql/table.cc
sql/table.cc
+1
-1
No files found.
sql/opt_range.cc
View file @
affdd79c
...
@@ -7495,7 +7495,8 @@ SEL_TREE *Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM *param,
...
@@ -7495,7 +7495,8 @@ SEL_TREE *Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM *param,
param
->
current_table
);
param
->
current_table
);
#ifdef HAVE_SPATIAL
#ifdef HAVE_SPATIAL
Field
::
geometry_type
sav_geom_type
;
Field
::
geometry_type
sav_geom_type
;
if
(
field_item
->
field
->
type
()
==
MYSQL_TYPE_GEOMETRY
)
const
bool
geometry
=
field_item
->
field
->
type
()
==
MYSQL_TYPE_GEOMETRY
;
if
(
geometry
)
{
{
sav_geom_type
=
((
Field_geom
*
)
field_item
->
field
)
->
geom_type
;
sav_geom_type
=
((
Field_geom
*
)
field_item
->
field
)
->
geom_type
;
/* We have to be able to store all sorts of spatial features here */
/* We have to be able to store all sorts of spatial features here */
...
@@ -7530,7 +7531,7 @@ SEL_TREE *Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM *param,
...
@@ -7530,7 +7531,7 @@ SEL_TREE *Item_bool_func::get_full_func_mm_tree(RANGE_OPT_PARAM *param,
}
}
#ifdef HAVE_SPATIAL
#ifdef HAVE_SPATIAL
if
(
field_item
->
field
->
type
()
==
MYSQL_TYPE_GEOMETRY
)
if
(
geometry
)
{
{
((
Field_geom
*
)
field_item
->
field
)
->
geom_type
=
sav_geom_type
;
((
Field_geom
*
)
field_item
->
field
)
->
geom_type
=
sav_geom_type
;
}
}
...
...
sql/sql_acl.cc
View file @
affdd79c
...
@@ -3460,7 +3460,8 @@ int acl_set_default_role(THD *thd, const char *host, const char *user,
...
@@ -3460,7 +3460,8 @@ int acl_set_default_role(THD *thd, const char *host, const char *user,
ulong
query_length
=
0
;
ulong
query_length
=
0
;
bool
clear_role
=
FALSE
;
bool
clear_role
=
FALSE
;
char
buff
[
512
];
char
buff
[
512
];
enum_binlog_format
save_binlog_format
;
enum_binlog_format
save_binlog_format
=
thd
->
get_current_stmt_binlog_format
();
const
CSET_STRING
query_save
__attribute__
((
unused
))
=
thd
->
query_string
;
const
CSET_STRING
query_save
__attribute__
((
unused
))
=
thd
->
query_string
;
DBUG_ENTER
(
"acl_set_default_role"
);
DBUG_ENTER
(
"acl_set_default_role"
);
...
@@ -3500,6 +3501,7 @@ int acl_set_default_role(THD *thd, const char *host, const char *user,
...
@@ -3500,6 +3501,7 @@ int acl_set_default_role(THD *thd, const char *host, const char *user,
if
(
WSREP
(
thd
)
&&
!
IF_WSREP
(
thd
->
wsrep_applier
,
0
))
if
(
WSREP
(
thd
)
&&
!
IF_WSREP
(
thd
->
wsrep_applier
,
0
))
{
{
thd
->
set_query
(
buff
,
query_length
,
system_charset_info
);
thd
->
set_query
(
buff
,
query_length
,
system_charset_info
);
// Attention!!! here is implicit goto error;
WSREP_TO_ISOLATION_BEGIN
(
WSREP_MYSQL_DB
,
(
char
*
)
"user"
,
NULL
);
WSREP_TO_ISOLATION_BEGIN
(
WSREP_MYSQL_DB
,
(
char
*
)
"user"
,
NULL
);
}
}
...
...
sql/sql_class.h
View file @
affdd79c
...
@@ -3765,6 +3765,10 @@ class THD :public Statement,
...
@@ -3765,6 +3765,10 @@ class THD :public Statement,
*
format
=
(
enum_binlog_format
)
variables
.
binlog_format
;
*
format
=
(
enum_binlog_format
)
variables
.
binlog_format
;
*
current_format
=
current_stmt_binlog_format
;
*
current_format
=
current_stmt_binlog_format
;
}
}
inline
enum_binlog_format
get_current_stmt_binlog_format
()
{
return
current_stmt_binlog_format
;
}
inline
void
set_binlog_format
(
enum_binlog_format
format
,
inline
void
set_binlog_format
(
enum_binlog_format
format
,
enum_binlog_format
current_format
)
enum_binlog_format
current_format
)
{
{
...
...
sql/table.cc
View file @
affdd79c
...
@@ -2043,7 +2043,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
...
@@ -2043,7 +2043,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
keyinfo
=
share
->
key_info
;
keyinfo
=
share
->
key_info
;
uint
primary_key
=
my_strcasecmp
(
system_charset_info
,
share
->
keynames
.
type_names
[
0
],
uint
primary_key
=
my_strcasecmp
(
system_charset_info
,
share
->
keynames
.
type_names
[
0
],
primary_key_name
)
?
MAX_KEY
:
0
;
primary_key_name
)
?
MAX_KEY
:
0
;
KEY
*
key_first_info
;
KEY
*
key_first_info
=
NULL
;
if
(
primary_key
>=
MAX_KEY
&&
keyinfo
->
flags
&
HA_NOSAME
)
if
(
primary_key
>=
MAX_KEY
&&
keyinfo
->
flags
&
HA_NOSAME
)
{
{
...
...
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