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
ccddb4f7
Commit
ccddb4f7
authored
Aug 18, 2017
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc: simplify code
parent
b4cd2d3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
sql/sql_table.cc
sql/sql_table.cc
+2
-7
No files found.
sql/sql_table.cc
View file @
ccddb4f7
...
...
@@ -10013,14 +10013,9 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
if
(
make_versioned
)
{
to_sys_trx_start
->
set_notnull
(
to_sys_trx_start
->
null_offset
());
// TODO: write directly to record bypassing the same checks on every call
to_sys_trx_start
->
set_notnull
();
to_sys_trx_start
->
store_time
(
&
query_start
);
static
const
timeval
max_tv
=
{
TIMESTAMP_MAX_VALUE
,
TIME_MAX_SECOND_PART
};
static
const
uint
dec
=
TIME_SECOND_PART_DIGITS
;
to_sys_trx_end
->
set_notnull
(
to_sys_trx_end
->
null_offset
());
my_timestamp_to_binary
(
&
max_tv
,
to_sys_trx_end
->
ptr
,
dec
);
to_sys_trx_end
->
set_max
();
}
else
if
(
make_unversioned
)
{
...
...
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