Kevin,
Tuesday, November 05, 2002, 12:55:41 PM, you wrote:

KD> I've shrunk the dataset down as far as I can to continue to reproduce this
KD> issue, but the .gz file is still 1.3MB

KD> Running this on 4.0.3 produces the correct results. 4.0.4 doesn't.

KD> fetch http://www.dragondata.com/ditsy.gz

KD> bash-2.05b# mysql test < ditsy
KD> bash-2.05b# mysql test

KD> mysql> SELECT COUNT(*) FROM t1 LEFT JOIN t2 ON t1.b=t2.b WHERE t1.d > 10
KD> AND (t2.c=2) ORDER BY e;
KD> +----------+
KD> | COUNT(*) |
KD> +----------+
KD> | 909 |
KD> +----------+
KD> 1 row in set (0.36 sec)

KD> mysql> SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.b=t2.b WHERE t1.d > 10 AND
KD> (t2.c=2) ORDER BY e desc limit 0,12;
KD> Empty set (0.16 sec)

KD> mysql> SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.b=t2.b WHERE t1.d > 10 AND
KD> (t2.c=2) ORDER BY e desc limit 0,100;
KD> +--------+-----+-----+------------------+
KD> | a | b | d | e |
KD> +--------+-----+-----+------------------+
KD> | 508493 | 310 | 173 | 3.66816143497758 |
KD> +--------+-----+-----+------------------+
KD> 1 row in set (0.14 sec)

KD> mysql> SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.b=t2.b WHERE t1.d > 10 AND
KD> (t2.c=2) ORDER BY e limit 0,12;
KD> +--------+-----+----+--------------------+
KD> | a | b | d | e |
KD> +--------+-----+----+--------------------+
KD> | 388402 | 520 | 31 | -0.185185185185185 |
KD> +--------+-----+----+--------------------+
KD> 1 row in set (0.13 sec)

KD> mysql> SELECT t1.* FROM t1 LEFT JOIN t2 ON t1.b=t2.b WHERE t1.d > 10 AND
KD> (t2.c=2) ORDER BY e limit 0,100;
KD> +--------+-----+----+--------------------+
KD> | a | b | d | e |
KD> +--------+-----+----+--------------------+
KD> | 388402 | 520 | 31 | -0.185185185185185 |
KD> | 389682 | 520 | 50 | 0.05 |
KD> | 316393 | 520 | 12 | 0.338709677419355 |
KD> +--------+-----+----+--------------------+
KD> 3 rows in set (0.14 sec)

It's a known bug and it is already fixed.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
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

Reply via email to