Commit 4976a325 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-35037 Invalid (old?) table or database name 't#i#00' upon creating...

MDEV-35037 Invalid (old?) table or database name 't#i#00' upon creating RocksDB table with vector index

disallow it, for now

also fixes

MDEV-35036 Assertion failure in myrocks::ha_rocksdb::position upon INSERT into RocksDB table with vector index
parent c165a0b5
......@@ -7827,6 +7827,12 @@ int ha_rocksdb::create(const char *const name, TABLE *const table_arg,
DBUG_ASSERT(table_arg != nullptr);
DBUG_ASSERT(create_info != nullptr);
if (table_arg->s->total_keys > table_arg->s->keys)
{
my_error(ER_ILLEGAL_HA_CREATE_OPTION, MYF(0), "RocksDB", "VECTOR");
DBUG_RETURN(HA_ERR_UNSUPPORTED);
}
if (create_info->data_file_name) {
// DATA DIRECTORY is used to create tables under a specific location
// outside the MySQL data directory. We don't support this for MyRocks.
......
# RocksDB doesn't support VECTOR yet
create table t1(v blob not null, vector index(v)) engine=rocksdb;
ERROR HY000: Table storage engine 'RocksDB' does not support the create option 'VECTOR'
--source include/have_rocksdb.inc
--echo # RocksDB doesn't support VECTOR yet
--error ER_ILLEGAL_HA_CREATE_OPTION
create table t1(v blob not null, vector index(v)) engine=rocksdb;
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