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
6d377a52
Commit
6d377a52
authored
Jun 26, 2018
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction for the patch to fix mdev-16473.
parent
31c950cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sql/sql_base.cc
sql/sql_base.cc
+1
-1
sql/sql_class.h
sql/sql_class.h
+1
-1
No files found.
sql/sql_base.cc
View file @
6d377a52
...
@@ -3331,7 +3331,7 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables,
...
@@ -3331,7 +3331,7 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables,
Not a placeholder: must be a base/temporary table or a view. Let us open it.
Not a placeholder: must be a base/temporary table or a view. Let us open it.
*/
*/
if
(
tables
->
db
==
no_db
)
if
(
tables
->
db
[
0
]
==
no_db
[
0
]
)
{
{
my_message
(
ER_NO_DB_ERROR
,
ER
(
ER_NO_DB_ERROR
),
MYF
(
0
));
my_message
(
ER_NO_DB_ERROR
,
ER
(
ER_NO_DB_ERROR
),
MYF
(
0
));
error
=
TRUE
;
error
=
TRUE
;
...
...
sql/sql_class.h
View file @
6d377a52
...
@@ -3960,8 +3960,8 @@ class THD :public Statement,
...
@@ -3960,8 +3960,8 @@ class THD :public Statement,
return
TRUE
;
return
TRUE
;
}
}
/* This will allow to throw an error later for non-CTE references */
/* This will allow to throw an error later for non-CTE references */
*
p_db
=
(
char
*
)
no_db
;
*
p_db_length
=
strlen
(
no_db
);
*
p_db_length
=
strlen
(
no_db
);
*
p_db
=
strmake
(
no_db
,
*
p_db_length
);
}
}
else
else
{
{
...
...
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