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
b9c70b88
Commit
b9c70b88
authored
Feb 22, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove always-false variable
parent
5fb08323
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
sql/sql_select.cc
sql/sql_select.cc
+2
-5
No files found.
sql/sql_select.cc
View file @
b9c70b88
...
...
@@ -843,10 +843,7 @@ int SELECT_LEX::vers_setup_conds(THD *thd, TABLE_LIST *tables, COND **where_expr
Item
*
row_end
=
newx
Item_field
(
thd
,
&
this
->
context
,
table
->
db
.
str
,
table
->
alias
.
str
,
fend
);
bool
tmp_from_ib
=
table
->
table
->
s
->
table_category
==
TABLE_CATEGORY_TEMPORARY
&&
table
->
table
->
vers_start_field
()
->
type
()
==
MYSQL_TYPE_LONGLONG
;
bool
timestamps_only
=
table
->
table
->
versioned
(
VERS_TIMESTAMP
)
&&
!
tmp_from_ib
;
bool
timestamps_only
=
table
->
table
->
versioned
(
VERS_TIMESTAMP
);
if
(
vers_conditions
)
{
...
...
@@ -868,7 +865,7 @@ int SELECT_LEX::vers_setup_conds(THD *thd, TABLE_LIST *tables, COND **where_expr
// have uint64 type of sys_trx_(start|end) field.
// They need special handling.
TABLE
*
t
=
table
->
table
;
if
(
t
mp_from_ib
||
t
->
versioned
(
VERS_TIMESTAMP
)
||
if
(
t
->
versioned
(
VERS_TIMESTAMP
)
||
thd
->
variables
.
vers_innodb_algorithm_simple
)
{
if
(
vers_conditions
)
...
...
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