Commit 2c1e4d4d authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-14563: Wrong query plan for query with no PK

Part #2: Don't use the new code for the clustered PK, it is handled
in the special way right above.
parent a6254e5e
......@@ -5720,6 +5720,8 @@ int ha_rocksdb::open(const char *const name, int mode, uint test_if_locked) {
for (uint key= 0; key < table->s->keys; key++) {
KEY *const key_info = &table->key_info[key];
if (key == table->s->primary_key)
continue;
for (uint kp = 0; kp < key_info->usable_key_parts; kp++) {
uint field_index= key_info->key_part[kp].field->field_index;
if (m_key_descr_arr[key]->can_unpack(kp)) {
......
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