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
c661b4d0
Commit
c661b4d0
authored
Jun 14, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13017 LOCK TABLE fails with irrelevant error while working with tables affected by ANSI_QUOTES
parent
5cbbfe9f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/suite/parts/r/quoting.result
mysql-test/suite/parts/r/quoting.result
+6
-0
mysql-test/suite/parts/t/quoting.test
mysql-test/suite/parts/t/quoting.test
+10
-0
sql/sql_partition.cc
sql/sql_partition.cc
+3
-0
No files found.
mysql-test/suite/parts/r/quoting.result
0 → 100644
View file @
c661b4d0
set sql_mode=ansi_quotes;
create table t1 (i int) partition by range (i) (partition flush values less than maxvalue);
set sql_mode=default;
lock tables t1 read local;
unlock tables;
drop table t1;
mysql-test/suite/parts/t/quoting.test
0 → 100644
View file @
c661b4d0
#
# MDEV-13017 LOCK TABLE fails with irrelevant error while working with tables affected by ANSI_QUOTES
#
--
source
include
/
have_partition
.
inc
set
sql_mode
=
ansi_quotes
;
create
table
t1
(
i
int
)
partition
by
range
(
i
)
(
partition
flush
values
less
than
maxvalue
);
set
sql_mode
=
default
;
lock
tables
t1
read
local
;
unlock
tables
;
drop
table
t1
;
sql/sql_partition.cc
View file @
c661b4d0
...
...
@@ -1918,9 +1918,12 @@ static int add_name_string(File fptr, const char *name)
int
err
;
String
name_string
(
""
,
0
,
system_charset_info
);
THD
*
thd
=
current_thd
;
ulonglong
save_sql_mode
=
thd
->
variables
.
sql_mode
;
thd
->
variables
.
sql_mode
&=
~
MODE_ANSI_QUOTES
;
ulonglong
save_options
=
thd
->
variables
.
option_bits
;
thd
->
variables
.
option_bits
&=
~
OPTION_QUOTE_SHOW_CREATE
;
append_identifier
(
thd
,
&
name_string
,
name
,
strlen
(
name
));
thd
->
variables
.
sql_mode
=
save_sql_mode
;
thd
->
variables
.
option_bits
=
save_options
;
err
=
add_string_object
(
fptr
,
&
name_string
);
return
err
;
...
...
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