[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-bugs
Subject:    A repetable bug in SELECT DISTINCT...(4.0.2)
From:       "Sergey S. Kostyliov" <rathamahata () php4 ! ru>
Date:       2002-07-15 13:49:15
[Download RAW message or body]

>Description:
	Hello,
	I got
	ERROR 2013: Lost connection to MySQL server during query.
>How-To-Repeat:
	
	I had uploaded file 'select_distinct-ssk.tar.gz' with simple test
	case to ftp://support.mysql.com/pub/mysql/secret.

	Query: 
	select 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
	from supplier s, product_supplier ps, shop_product_supplier sps
	use index(product_supplier_id)
	left join route r on r.route_id=s.route_id
	where ps.product_supplier_id=sps.product_supplier_id and
	sps.shop_id=10 and ps.supplier_id=s.supplier_id
	order by name
	limit 0, 10

	Result:
		ERROR 2013: Lost connection to MySQL server during query
	
	Note: MySQL was compiled with both gcc-3.1 and gcc-2.95.3,
	this doesn't matter, the result is the same.
	
>Fix:
	don't use distinct
>Submitter-Id:	<submitter ID>
>Originator:	Sergey S. Kostyliov
>Organization:
 	eHouse Holding (Russia, Moscow)
>MySQL support: none
>Synopsis:	<synopsis of the problem (one line)>
>Severity:	 serious
>Priority:	medium
>Category:	mysql
>Class:		sw-bug
>Release:	mysql-4.0.2-alpha (Source distribution)
>Server: /usr/bin/mysqladmin  Ver 8.35 Distrib 4.0.2-alpha, for pc-linux-gnu 
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	10
Connection		Localhost via UNIX socket
UNIX socket		/var/lib/mysql/mysql.sock
Uptime:			18 min 57 sec

Threads: 1  Questions: 1  Slow queries: 0  Opens: 6  Flush tables: 1  Open 
tables: 0  Queries per second avg: 0.001
>Environment: 
System: Linux bolero.ru 2.4.19-rc1aa2 #2 SMP Tue Jul 9 11:03:23 MSD 2002 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-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
Compilation info: CC='/usr/local/gcc-3.1/bin/gcc'  CFLAGS='-O4 -march=pentium3 
-mcpu=pentium3'  CXX='/usr/local/gcc-3.1/bin/gcc'  CXXFLAGS='-O4 
-march=pentium3 -mcpu=pentium3 -felide-constructors -fno-exceptions -fno-rtti 
-DUSE_MYSYS_NEW'  LDFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 éÀÌ  8 20:18 /lib/libc.so.6 -> 
libc-2.2.5.so
-rwxr-xr-x    1 root     root      1260480 éÀÎ 18 18:45 /lib/libc-2.2.5.so
-rw-r--r--    1 root     root      2312370 éÀÎ 18 18:13 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 éÀÎ 18 17:58 /usr/lib/libc.so
lrwxrwxrwx    1 root     root           10 éÀÌ  8 23:35 /usr/lib/libc-client.a 
-> c-client.a
Configure command: ./configure --prefix=/usr --libexecdir=/usr/sbin 
--localstatedir=/var/lib/mysql --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-assembler 
--with-mysqld-ldflags=-all-static --with-mysql-user=mysql --with-innodb 
--with-unix-socket-path=/var/lib/mysql/mysql.sock 
--with-extra-charsets=latin1,koi8_ru,cp1251 --enable-thread-safe-client 
CC=/usr/local/gcc-3.1/bin/gcc 'CFLAGS=-O4 -march=pentium3 -mcpu=pentium3' 
'CXXFLAGS=-O4 -march=pentium3 -mcpu=pentium3 -felide-constructors 
-fno-exceptions -fno-rtti -DUSE_MYSYS_NEW' CXX=/usr/local/gcc-3.1/bin/gcc


---------------------------------------------------------------------
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 <bugs-unsubscribe@lists.mysql.com>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic