1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed problem with WHERE key=const ORDER BY key DESC

This commit is contained in:
monty@hundin.mysql.fi
2002-03-15 21:30:50 +02:00
parent 93ab42f652
commit f0e835ac09
5 changed files with 23 additions and 15 deletions

View File

@ -112,7 +112,7 @@ int FTB_WORD_cmp_list(void *v __attribute__((unused)), FTB_WORD **a, FTB_WORD **
}
void _ftb_parse_query(FTB *ftb, byte **start, byte *end,
FTB_EXPR *up, uint depth)
FTB_EXPR *up, uint depth)
{
byte res;
FTB_PARAM param;
@ -127,7 +127,7 @@ void _ftb_parse_query(FTB *ftb, byte **start, byte *end,
param.prev=' ';
while ((res=ft_get_word(start,end,&w,&param)))
{
byte r=param.plusminus;
int r=param.plusminus;
float weight= (float) (param.pmsign ? nwghts : wghts)[(r>5)?5:((r<-5)?-5:r)];
switch (res) {
case 1: /* word found */