1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-14789 Creating federated table on versioned table fails

don't allow to discover WITH SYSTEM VERSIONING clause

originally by: Aleksey Midenkov
This commit is contained in:
Sergei Golubchik
2018-02-15 13:31:22 +01:00
parent 5f6b3f9c07
commit 221d010f3e
3 changed files with 20 additions and 0 deletions

View File

@@ -2728,6 +2728,9 @@ static bool sql_unusable_for_discovery(THD *thd, handlerton *engine,
// ... engine
if (create_info->db_type && create_info->db_type != engine)
return 1;
// ... WITH SYSTEM VERSIONING
if (create_info->versioned())
return 1;
return 0;
}