mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 10:45:30 +02:00
Fix for bug in WHERE key='j' or key='J'
Docs/manual.texi: Changelog myisam/myisampack.c: Delete tmp file on error. mysql-test/r/range.result: Updated test case mysql-test/t/range.test: Updated test case
This commit is contained in:
parent
30016518c3
commit
8f2f159750
10 changed files with 71 additions and 46 deletions
|
|
@ -1718,7 +1718,7 @@ find_item_in_list(Item *find,List<Item> &items)
|
|||
{
|
||||
if (found)
|
||||
{
|
||||
if ((*found)->eq(item))
|
||||
if ((*found)->eq(item,0))
|
||||
continue; // Same field twice (Access?)
|
||||
if (current_thd->where)
|
||||
my_printf_error(ER_NON_UNIQ_ERROR,ER(ER_NON_UNIQ_ERROR),MYF(0),
|
||||
|
|
@ -1734,7 +1734,7 @@ find_item_in_list(Item *find,List<Item> &items)
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (!table_name && (item->eq(find) ||
|
||||
else if (!table_name && (item->eq(find,0) ||
|
||||
find->name &&
|
||||
!my_strcasecmp(item->name,find->name)))
|
||||
{
|
||||
|
|
@ -2213,7 +2213,7 @@ int setup_ftfuncs(THD *thd)
|
|||
lj.rewind();
|
||||
while ((ftf2=lj++) != ftf)
|
||||
{
|
||||
if (ftf->eq(ftf2) && !ftf2->master)
|
||||
if (ftf->eq(ftf2,1) && !ftf2->master)
|
||||
ftf2->master=ftf;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue