From 0dff67cba243fa260bf901c443c7abaaa68567a9 Mon Sep 17 00:00:00 2001 From: "serg@serg.mysql.com" <> Date: Tue, 21 Jan 2003 19:24:34 +0100 Subject: Two-level index structure for FULLTEXT indexes --- include/my_handler.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/my_handler.h') diff --git a/include/my_handler.h b/include/my_handler.h index 629a0974d93..618d1df1a6e 100644 --- a/include/my_handler.h +++ b/include/my_handler.h @@ -1,15 +1,15 @@ /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB - + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. - + You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, @@ -43,6 +43,13 @@ typedef struct st_HA_KEYSEG /* Key-portion */ { length=mi_uint2korr((key)+1); (key)+=3; } \ } +#define get_key_length_rdonly(length,key) \ +{ if ((uchar) *(key) != 255) \ + length= ((uint) (uchar) *((key))); \ + else \ + { length=mi_uint2korr((key)+1); } \ +} + #define get_key_pack_length(length,length_pack,key) \ { if ((uchar) *(key) != 255) \ { length= (uint) (uchar) *((key)++); length_pack=1; }\ -- cgit v1.2.1