Commit 0ab99d2f authored by Aleksey Midenkov's avatar Aleksey Midenkov

SQL: no_replicate for VTMD [fixes #289]

parent 335bfb34
...@@ -150,7 +150,7 @@ x0_vtmd ...@@ -150,7 +150,7 @@ x0_vtmd
drop table x0_vtmd; drop table x0_vtmd;
rename table x0 to d0; rename table x0 to d0;
Warnings: Warnings:
Warning 4088 `test.d0_vtmd` table already exists! Warning 4115 `test.d0_vtmd` table already exists!
show tables; show tables;
Tables_in_test Tables_in_test
d0 d0
...@@ -353,7 +353,7 @@ t3_vtmd ...@@ -353,7 +353,7 @@ t3_vtmd
u0_vtmd u0_vtmd
u0_vtmd_vtmd u0_vtmd_vtmd
Warnings: Warnings:
Warning 4088 Table `test.u0_vtmd` is not a VTMD table Warning 4115 Table `test.u0_vtmd` is not a VTMD table
set versioning_alter_history= survive; set versioning_alter_history= survive;
create or replace table t (x int) with system versioning; create or replace table t (x int) with system versioning;
select * from t for system_time all; select * from t for system_time all;
......
...@@ -1309,7 +1309,10 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write, ...@@ -1309,7 +1309,10 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
goto err; goto err;
share->vtmd= *extra2; share->vtmd= *extra2;
if (share->vtmd) if (share->vtmd)
{
share->table_category= TABLE_CATEGORY_LOG; share->table_category= TABLE_CATEGORY_LOG;
share->no_replicate= true;
}
vtmd_used= true; vtmd_used= true;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment