diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-05-11 12:18:34 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-05-18 20:34:03 +0200 |
commit | ececc50252fadca21201ffc69a63916bc6165e0b (patch) | |
tree | 7b4f6a65d11551aa736778d86b8a07fa92f82711 /sql/share | |
parent | 2400e06946bb5856684fd27ee86f610267bf4dc3 (diff) | |
download | mariadb-git-ececc50252fadca21201ffc69a63916bc6165e0b.tar.gz |
MDEV-15966 Behavior for TRUNCATE versioned table is not documented and not covered by tests
* add error for truncation of versioned tables: `ER_TRUNCATE_ILLEGAL_VERS`
* make a full table open with `tdc_aquire_share` instead of just `ha_table_exists` check
test suites run: main, parts, versioning
Closes #785
Diffstat (limited to 'sql/share')
-rw-r--r-- | sql/share/errmsg-utf8.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/share/errmsg-utf8.txt b/sql/share/errmsg-utf8.txt index feb47f9af94..94737d48e64 100644 --- a/sql/share/errmsg-utf8.txt +++ b/sql/share/errmsg-utf8.txt @@ -7931,3 +7931,5 @@ ER_PERIOD_CONSTRAINT_DROP eng "Can't DROP CONSTRAINT `%s`. Use DROP PERIOD `%s` for this" ER_TOO_LONG_KEYPART 42000 S1009 eng "Specified key part was too long; max key part length is %u bytes" +ER_TRUNCATE_ILLEGAL_VERS + eng "Cannot truncate a versioned table" |