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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b8d9889e
Commit
b8d9889e
authored
Jul 11, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added lost part about preopened temporary tables
parent
11c737f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
sql/sql_base.cc
sql/sql_base.cc
+13
-2
No files found.
sql/sql_base.cc
View file @
b8d9889e
...
...
@@ -4574,8 +4574,19 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables,
tables
->
db
,
tables
->
table_name
,
tables
));
//psergey: invalid read of size 1 here
(
*
counter
)
++
;
/* Check if we are trying to create a temporary table */
if
(
tables
->
open_type
==
OT_TEMPORARY_ONLY
)
/*
Not a placeholder: must be a base/temporary table or a view. Let us open it.
*/
if
(
tables
->
table
)
{
/*
If this TABLE_LIST object has an associated open TABLE object
(TABLE_LIST::table is not NULL), that TABLE object must be a pre-opened
temporary table.
*/
DBUG_ASSERT
(
is_temporary_table
(
tables
));
}
else
if
(
tables
->
open_type
==
OT_TEMPORARY_ONLY
)
{
/*
OT_TEMPORARY_ONLY means that we are in CREATE TEMPORARY TABLE statement.
...
...
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