>Description:
        Requests are much longer when using IN instead of =, even
        if the list specified after IN has only one element.
>How-To-Repeat:
        create table tmp (a integer, b integer, c integer);
        create index tmp_id on tmp (a,b,c);
        insert into tmp values (1,2,3);
        insert into tmp values (2,1,3);
        explain select * from tmp where a=1 and b=2;
        explain select * from tmp where a=1 and b in (2);
        explain select * from tmp where a=1 and b=2 order by c;
        explain select * from tmp where a=1 and b in (2) order by c;
>Fix:
        

>Submitter-Id:  <submitter ID>
>Originator:    Herve Guillemet
>Organization:  
                Apteryx
>MySQL support: none
>Synopsis:      Bad use of index when using IN
>Severity:      serious
>Priority:      high
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-3.23.44 (Source distribution)

>Environment:
        
System: Linux rill 2.4.13 #2 Mon Oct 29 11:44:05 CET 2001 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 Oct 25 12:27 /lib/libc.so.6 -> libc-2.2.3.so
-rwxr-xr-x    1 root     root      4783716 May 26 03:03 /lib/libc-2.2.3.so
-rw-r--r--    1 root     root     24721042 May 26 03:00 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 May 26 03:00 /usr/lib/libc.so
Configure command: ./configure  --prefix=/home/hg/mysqlsearch/mysql 
--enable-thread-safe-client --with-mysqld-user=hg --with-mysqld-group=users


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to