>Description: See how-to-repeat. >How-To-Repeat: CREATE TABLE A (A int); CREATE TABLE B (B int); CREATE TABLE C (A int, B int); INSERT INTO A VALUES (1),(2); INSERT INTO B VALUES (1),(2); INSERT INTO C VALUES (1,1);
SELECT C.B FROM A INNER JOIN C ON C.A = C.A RIGHT JOIN B ON B.B = C.B WHERE C.B IS NULL Expected Result: A3 -- 2 Actual Result: A3 -- 1 2 2 Tried in postgresql and it works like the expected result. >Fix: none >Submitter-Id: >Originator: Alan Tam >Organization: >MySQL support: none >Synopsis: Right join after inner join has wrong result >Severity: serious >Priority: medium >Category: mysql >Class: sw-bug >Release: mysql-4.0.20 (Source distribution) >Server: /usr/bin/mysqladmin Ver 8.40 Distrib 4.0.20, for pc-linux-gnu on i386 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.20-log Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/run/mysqld/mysqld.sock Uptime: 1 day 1 hour 3 min 32 sec Threads: 22 Questions: 237517 Slow queries: 0 Opens: 1720 Flush tables: 1 Open tables: 64 Queries per second avg: 2.633 >C compiler: i386-linux-gcc (GCC) 3.3.4 (Debian 1:3.3.4-4) >C++ compiler: i386-linux-g++ (GCC) 3.3.4 (Debian 1:3.3.4-4) >Environment: System: Linux delta 2.6.7-1-686 #1 Thu Jul 8 05:36:53 EDT 2004 i686 GNU/Linux Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.4 (Debian 1:3.3.4-3) Compilation info: CC='i386-linux-gcc' CFLAGS='' CXX='i386-linux-g++' CXXFLAGS='' LDFLAGS='' ASFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 2004-06-20 00:46 /lib/libc.so.6 -> libc-2.3.2.so -rw-r--r-- 1 root root 1243856 2004-05-26 02:40 /lib/libc-2.3.2.so -rw-r--r-- 1 root root 2640410 2004-05-26 02:40 /usr/lib/libc.a -rw-r--r-- 1 root root 204 2004-05-26 02:16 /usr/lib/libc.so Configure command: ./configure '--build=i386-linux' '--host=i386-linux' '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--sysconfdir=/etc/mysql' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-raid' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--with-client-ldflags=-lstdc++' '--with-embedded-server' '--with-vio' '--with-openssl' '--without-docs' '--without-bench' '--without-readline' '--with-extra-charsets=all' '--with-berkeley-db' '--with-innodb' 'build_alias=i386-linux' 'host_alias=i386-linux' -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]