>Description: ERROR 2013: Lost connection to MySQL server during query. >How-To-Repeat: 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: The same results with oficial mysql-4.0.2 and latest bk snapshot, mysql was compiled with both gcc-3.1 and gcc-295.3 >Fix: Don't use distinct. >Submitter-Id: <submitter ID> >Originator: Sergey S. Kostyliov >Organization: eHouse (http://www.ehouse.ru) >MySQL support: none >Synopsis: SELECT DISTINCT ... failed >Severity: serious >Priority: medium >Category: mysql >Class: sw-bug >Release: mysql-4.0.3-alpha (Source distribution) >Server: /usr/bin/mysqladmin Ver 8.35 Distrib 4.0.3-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.3-alpha Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/lib/mysql/mysql.sock Uptime: 56 sec Threads: 1 Questions: 1 Slow queries: 0 Opens: 6 Flush tables: 1 Open tables: 0 Queries per second avg: 0.018 >Environment: <machine, os, target, libraries (multiple lines)> System: Linux white.unishop.org.ru 2.4.19-rc2aa1 #1 SMP Thu Jul 18 10:53:30 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 -msse -pipe' CXX='/usr/local/gcc-3.1/bin/gcc' CXXFLAGS='-O4 -march=pentium3 -mcpu=pentium3 -msse -pipe -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 --------------------------------------------------------------------- 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