From 3f361af7ce4937f02b939e19b0e17dd942045f99 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Tue, 1 Apr 2014 18:14:57 +0200 Subject: - FIX MDEV-5989 (max(indexed) doesn't work) By implementing index_last modified: storage/connect/ha_connect.cc storage/connect/ha_connect.h storage/connect/xindex.cpp - Adding the TYPE_BIN Connect internal type (not tested and not used yet) modified: storage/connect/global.h storage/connect/value.cpp storage/connect/value.h --- storage/connect/ha_connect.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'storage/connect/ha_connect.h') diff --git a/storage/connect/ha_connect.h b/storage/connect/ha_connect.h index f277209a78c..79f4a2e734a 100644 --- a/storage/connect/ha_connect.h +++ b/storage/connect/ha_connect.h @@ -241,7 +241,8 @@ public: */ ulong index_flags(uint inx, uint part, bool all_parts) const { - return HA_READ_NEXT | HA_READ_RANGE | HA_READ_ORDER | HA_KEYREAD_ONLY; + return HA_READ_NEXT | HA_READ_RANGE | HA_READ_ORDER + | HA_KEYREAD_ONLY | HA_KEY_SCAN_NOT_ROR; } // end of index_flags /** @brief @@ -416,7 +417,7 @@ const char *GetValStr(OPVAL vop, bool neg); We implement this in ha_connect.cc. It's not an obligatory method; skip it and and MySQL will treat it as not implemented. */ -//int index_last(uchar *buf); + int index_last(uchar *buf); /* Index condition pushdown implementation */ //Item *idx_cond_push(uint keyno, Item* idx_cond); -- cgit v1.2.1