A repetable bug in SELECT DISTINCT...(4.0.2)
am 15.07.2002 15:49:15 von rathamahata>Description:
=09Hello,
=09I got
=09ERROR 2013: Lost connection to MySQL server during query.
>How-To-Repeat:
=09
=09I had uploaded file 'select_distinct-ssk.tar.gz' with simple test
=09case to ftp://support.mysql.com/pub/mysql/secret.
=09Query:=20
=09select distinct s.supplier_id, s.who_pay, r.name as rname, s.name,
s.nick, s.address, s.contact_person, s.email, s.fax,
s.comment
=09from supplier s, product_supplier ps, shop_product_supplier sps
=09use index(product_supplier_id)
=09left join route r on r.route_id=3Ds.route_id
=09where ps.product_supplier_id=3Dsps.product_supplier_id and
=09sps.shop_id=3D10 and ps.supplier_id=3Ds.supplier_id
=09order by name
=09limit 0, 10
=09Result:
ERROR 2013: Lost connection to MySQL server during query
=09
=09Note: MySQL was compiled with both gcc-3.1 and gcc-2.95.3,
=09this doesn't matter, the result is the same.
=09
>Fix:
=09don't use distinct
>Submitter-Id:=09
>Originator:=09Sergey S. Kostyliov
>Organization:
=09eHouse Holding (Russia, Moscow)
>MySQL support: none
>Synopsis:=09
>Severity:=09 serious
>Priority:=09medium
>Category:=09mysql
>Class: sw-bug
>Release:=09mysql-4.0.2-alpha (Source distribution)
>Server: /usr/bin/mysqladmin Ver 8.35 Distrib 4.0.2-alpha, for pc-linux-=
gnu=20
on i686
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Server version 4.0.2-alpha
Protocol version=0910
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: =0918 min 57 sec
Threads: 1 Questions: 1 Slow queries: 0 Opens: 6 Flush tables: 1 Ope=
n=20
tables: 0 Queries per second avg: 0.001
>Environment:=20
System: Linux bolero.ru 2.4.19-rc1aa2 #2 SMP Tue Jul 9 11:03:23 MSD 2002 =
i686=20
unknown
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc=20
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
Compilation info: CC=3D'/usr/local/gcc-3.1/bin/gcc' CFLAGS=3D'-O4 -march=
=3Dpentium3=20
-mcpu=3Dpentium3' CXX=3D'/usr/local/gcc-3.1/bin/gcc' CXXFLAGS=3D'-O4=20
-march=3Dpentium3 -mcpu=3Dpentium3 -felide-constructors -fno-exceptions -=
fno-rtti=20
-DUSE_MYSYS_NEW' LDFLAGS=3D''
LIBC:=20
lrwxrwxrwx 1 root root 13 éÀ=CC 8 20:18 /lib/libc.s=
o.6 ->=20
libc-2.2.5.so
-rwxr-xr-x 1 root root 1260480 éÀ=CE 18 18:45 /lib/libc-2=
2.5.so
-rw-r--r-- 1 root root 2312370 éÀ=CE 18 18:13 /usr/lib/li=
bc.a
-rw-r--r-- 1 root root 178 éÀ=CE 18 17:58 /usr/lib/li=
bc.so
lrwxrwxrwx 1 root root 10 éÀ=CC 8 23:35 /usr/lib/li=
bc-client.a=20
-> c-client.a
Configure command: ./configure --prefix=3D/usr --libexecdir=3D/usr/sbin=20
--localstatedir=3D/var/lib/mysql --mandir=3D/usr/share/man=20
--infodir=3D/usr/share/info --enable-assembler=20
--with-mysqld-ldflags=3D-all-static --with-mysql-user=3Dmysql --with-inno=
db=20
--with-unix-socket-path=3D/var/lib/mysql/mysql.sock=20
--with-extra-charsets=3Dlatin1,koi8_ru,cp1251 --enable-thread-safe-client=
=20
CC=3D/usr/local/gcc-3.1/bin/gcc 'CFLAGS=3D-O4 -march=3Dpentium3 -mcpu=3Dp=
entium3'=20
'CXXFLAGS=3D-O4 -march=3Dpentium3 -mcpu=3Dpentium3 -felide-constructors=20
-fno-exceptions -fno-rtti -DUSE_MYSYS_NEW' CXX=3D/usr/local/gcc-3.1/bin/g=
cc
------------------------------------------------------------ ---------
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 bugs-thread12185@lists.mysql.com
To unsubscribe, e-mail