>Description: Using delete with no where statement results in a faulty message about updated lines >How-To-Repeat: SQL-statements follow:
mysql> select * from asses_cats; +-------+-------+ | ac_id | label | +-------+-------+ | 1 | test1 | | 2 | test2 | +-------+-------+ 2 rows in set (0.00 sec) mysql> ## THIS IS THE STATEMENT CAUSING THE FAULTY REPORT mysql> delete from asses_cats; Query OK, 0 rows affected (0.00 sec) mysql> select * from asses_cats; Empty set (0.00 sec) same situation, different delete statement mysql> select * from asses_cats; +-------+-------+ | ac_id | label | +-------+-------+ | 1 | test1 | | 2 | test2 | +-------+-------+ 2 rows in set (0.00 sec) mysql> ## THIS IS THE CORRECTED STATEMENT mysql> delete from asses_cats where 1=1; Query OK, 2 rows affected (0.00 sec) mysql> select * from asses_cats; Empty set (0.00 sec) >Fix: >Submitter-Id: dunno >Originator: Martijn Haak >Organization: catchy.net >MySQL support: none >Synopsis: faulty update message on brief delete statement >Severity: non-critical >Priority: >Category: mysql >Class: sw-bug >Release: mysql-3.23.41 (Source distribution) >Environment: <machine, os, target, libraries (multiple lines)> System: Linux oyster.vuurwerk.nl 2.4.30-vuurwerk #7 Fri Dec 14 18:03:45 CET 2001 i686 unknown Architecture: i686 Some paths: /usr/local/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.1 2.96-98) Compilation info: CC='gcc' CFLAGS='-O2 -march=i386 -mcpu=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_L ARGEFILE_SOURCE' C XX='c++' CXXFLAGS='-O2 -march=i386 -mcpu=i686 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE' LDFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 Dec 14 15:49 /lib/libc.so.6 -> libc-2.2.4.so -rwxr-xr-x 1 root root 1283580 Oct 3 2001 /lib/libc-2.2.4.so -rw-r--r-- 1 root root 27314604 Oct 3 2001 /usr/lib/libc.a -rw-r--r-- 1 root root 178 Oct 3 2001 /usr/lib/libc.so Configure command: ./configure i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbind ir=/usr/sbin -- sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr /lib --libexecdir=/usr/libexec --localstatedir= /var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/ info --without-debug --without-readline --enabl e-shared --with-extra-charsets=complex --with-bench --localstatedir=/var/lib /mysql --with-unix-socket-path=/var/lib/mysql/m ysql.sock --with-mysqld-user=mysql --with-extra-charsets=all --disable-assem ber --with-berkeley-db --enable-large-files=yes --enable-largefile=yes --with-thread-safe-client --enable-assembler --------------------------------------------------------------------- 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 <mysql-unsubscribe-##L=##[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php