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
0ab99d2f
Commit
0ab99d2f
authored
Oct 24, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL: no_replicate for VTMD [fixes #289]
parent
335bfb34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
mysql-test/suite/versioning/r/vtmd.result
mysql-test/suite/versioning/r/vtmd.result
+2
-2
sql/table.cc
sql/table.cc
+3
-0
No files found.
mysql-test/suite/versioning/r/vtmd.result
View file @
0ab99d2f
...
...
@@ -150,7 +150,7 @@ x0_vtmd
drop table x0_vtmd;
rename table x0 to d0;
Warnings:
Warning 4
088
`test.d0_vtmd` table already exists!
Warning 4
115
`test.d0_vtmd` table already exists!
show tables;
Tables_in_test
d0
...
...
@@ -353,7 +353,7 @@ t3_vtmd
u0_vtmd
u0_vtmd_vtmd
Warnings:
Warning 4
088
Table `test.u0_vtmd` is not a VTMD table
Warning 4
115
Table `test.u0_vtmd` is not a VTMD table
set versioning_alter_history= survive;
create or replace table t (x int) with system versioning;
select * from t for system_time all;
...
...
sql/table.cc
View file @
0ab99d2f
...
...
@@ -1309,7 +1309,10 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
goto
err
;
share
->
vtmd
=
*
extra2
;
if
(
share
->
vtmd
)
{
share
->
table_category
=
TABLE_CATEGORY_LOG
;
share
->
no_replicate
=
true
;
}
vtmd_used
=
true
;
break
;
default:
...
...
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