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
ebca70ea
Commit
ebca70ea
authored
Jul 21, 2020
by
Nikita Malyavin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix c++98 build
parent
5acd391e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
sql/sql_class.cc
sql/sql_class.cc
+2
-2
sql/sql_class.h
sql/sql_class.h
+3
-3
sql/sql_prepare.cc
sql/sql_prepare.cc
+2
-2
sql/table.cc
sql/table.cc
+1
-1
No files found.
sql/sql_class.cc
View file @
ebca70ea
...
...
@@ -3482,7 +3482,7 @@ void select_dumpvar::cleanup()
Query_arena
::
Type
Query_arena
::
type
()
const
{
DBUG_ASSERT
(
0
);
/* Should never be called */
return
Type
::
STATEMENT
;
return
STATEMENT
;
}
...
...
@@ -3535,7 +3535,7 @@ Statement::Statement(LEX *lex_arg, MEM_ROOT *mem_root_arg,
Query_arena
::
Type
Statement
::
type
()
const
{
return
Type
::
STATEMENT
;
return
STATEMENT
;
}
...
...
sql/sql_class.h
View file @
ebca70ea
...
...
@@ -951,9 +951,9 @@ class Query_arena
enum_state
state
;
/* We build without RTTI, so dynamic_cast can't be used. */
enum
class
Type
enum
Type
{
STATEMENT
,
PREPARED_STATEMENT
,
STORED_PROCEDURE
,
TABLE
STATEMENT
,
PREPARED_STATEMENT
,
STORED_PROCEDURE
,
TABLE
_ARENA
};
Query_arena
(
MEM_ROOT
*
mem_root_arg
,
enum
enum_state
state_arg
)
:
...
...
@@ -3658,7 +3658,7 @@ class THD :public Statement,
bool
is_item_tree_change_register_required
()
{
return
!
stmt_arena
->
is_conventional
()
||
stmt_arena
->
type
()
==
Query_arena
::
T
ype
::
TABLE
;
||
stmt_arena
->
type
()
==
Query_arena
::
T
ABLE_ARENA
;
}
void
change_item_tree
(
Item
**
place
,
Item
*
new_value
)
...
...
sql/sql_prepare.cc
View file @
ebca70ea
...
...
@@ -338,7 +338,7 @@ find_prepared_statement(THD *thd, ulong id)
thd
->
last_stmt
:
thd
->
stmt_map
.
find
(
id
));
if
(
stmt
==
0
||
stmt
->
type
()
!=
Query_arena
::
Type
::
PREPARED_STATEMENT
)
if
(
stmt
==
0
||
stmt
->
type
()
!=
Query_arena
::
PREPARED_STATEMENT
)
return
NULL
;
return
(
Prepared_statement
*
)
stmt
;
...
...
@@ -3893,7 +3893,7 @@ Prepared_statement::~Prepared_statement()
Query_arena
::
Type
Prepared_statement
::
type
()
const
{
return
Type
::
PREPARED_STATEMENT
;
return
PREPARED_STATEMENT
;
}
...
...
sql/table.cc
View file @
ebca70ea
...
...
@@ -54,7 +54,7 @@ class Table_arena: public Query_arena
Query_arena
(
mem_root
,
state_arg
){}
virtual
Type
type
()
const
{
return
T
ype
::
TABLE
;
return
T
ABLE_ARENA
;
}
};
...
...
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