From 64b11e61b5055cbdcdb97911d426b4f13f14fbd1 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Fri, 15 Dec 2017 17:59:33 +0300 Subject: MDEV-14293: MyRocks lacks basic functionality The error "Unsupported collation on string indexed column %s Use binary collation (latin1_bin, binary, utf8_bin)." is misleading. Change it: - It is now a warning - It is printed only for collations that do not support index-only access (reversible collations that use unpack_info are ok) - The new warning text is: Indexed column %s.%s uses a collation that does not allow index-only access in secondary key and has reduced disk space efficiency in primary key. --- storage/rocksdb/rdb_datadic.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storage/rocksdb/rdb_datadic.h') diff --git a/storage/rocksdb/rdb_datadic.h b/storage/rocksdb/rdb_datadic.h index b1ecef045d1..5796132de39 100644 --- a/storage/rocksdb/rdb_datadic.h +++ b/storage/rocksdb/rdb_datadic.h @@ -1358,4 +1358,6 @@ struct Rdb_index_info { uint64 m_ttl_duration = 0; }; +bool rdb_is_collation_supported(const my_core::CHARSET_INFO *const cs); + } // namespace myrocks -- cgit v1.2.1