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
58f26ab9
Commit
58f26ab9
authored
Mar 30, 2021
by
Monty
Committed by
Sergei Golubchik
May 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed comment_length -> get_comment
parent
e45b54b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/sql_table.cc
sql/sql_table.cc
+5
-5
No files found.
sql/sql_table.cc
View file @
58f26ab9
...
@@ -1039,7 +1039,7 @@ bool mysql_rm_table(THD *thd,TABLE_LIST *tables, bool if_exists,
...
@@ -1039,7 +1039,7 @@ bool mysql_rm_table(THD *thd,TABLE_LIST *tables, bool if_exists,
@retval >0 the lenght of the comment found
@retval >0 the lenght of the comment found
*/
*/
static
uint32
comment_length
(
THD
*
thd
,
uint32
comment_pos
,
static
uint32
get_comment
(
THD
*
thd
,
uint32
comment_pos
,
const
char
**
comment_start
)
const
char
**
comment_start
)
{
{
/* We use uchar * here to make array indexing portable */
/* We use uchar * here to make array indexing portable */
...
@@ -1069,7 +1069,7 @@ static uint32 comment_length(THD *thd, uint32 comment_pos,
...
@@ -1069,7 +1069,7 @@ static uint32 comment_length(THD *thd, uint32 comment_pos,
}
}
/**
/**
Execute the drop of a
normal or temporary table
.
Execute the drop of a
sequence, view or table (normal or temporary)
.
@param thd Thread handler
@param thd Thread handler
@param tables Tables to drop
@param tables Tables to drop
...
@@ -1631,7 +1631,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
...
@@ -1631,7 +1631,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
built_query
.
append
(
STRING_WITH_LEN
(
"IF EXISTS "
));
built_query
.
append
(
STRING_WITH_LEN
(
"IF EXISTS "
));
/* Preserve comment in original query */
/* Preserve comment in original query */
if
((
comment_len
=
comment_length
(
thd
,
if_exists
?
17
:
9
,
if
((
comment_len
=
get_comment
(
thd
,
if_exists
?
17
:
9
,
&
comment_start
)))
&
comment_start
)))
{
{
built_query
.
append
(
comment_start
,
comment_len
);
built_query
.
append
(
comment_start
,
comment_len
);
...
...
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