summaryrefslogtreecommitdiff
path: root/sql/share
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-05-11 12:18:34 +0200
committerSergei Golubchik <serg@mariadb.org>2019-05-18 20:34:03 +0200
commitececc50252fadca21201ffc69a63916bc6165e0b (patch)
tree7b4f6a65d11551aa736778d86b8a07fa92f82711 /sql/share
parent2400e06946bb5856684fd27ee86f610267bf4dc3 (diff)
downloadmariadb-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.txt2
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"