Re: Comparing bug in 4.1.7

2005-02-06 Thread Roger Baklund
Arjen Lentz wrote: [...] While we're at it: the term "non-zero"... what does it mean? As we all know, NULL != 0, and 0 == zero, consequently NULL must be non-zero. Flawed logic. Yes, I used flawed logic to illustrate my point: "non-zero" is a bad term to use in this context. The text from the

Re: Comparing bug in 4.1.7

2005-02-05 Thread Arjen Lentz
Hi Roger, Michael, Vlad, Let me just follow up on this old thread, as it may clarify some things. On Fri, 2004-12-03 at 02:00, Roger Baklund wrote: > Michael Stassen wrote: > > You are overthinking the issue. > > Probably. :) > > > mysql> SELECT VERSION(); > > +---+ > > | VERSION() | >

Re: Comparing bug in 4.1.7

2004-12-02 Thread Jocelyn Fournier
Hi Vlad ! Why not using select (select min( a ) is null from a) or null; as a workaround ? Regards, Jocelyn - Original Message - From: "Vlad Shalnev" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 03, 2004 7:01 AM Subject: Re:

Re: Comparing bug in 4.1.7

2004-12-02 Thread Vlad Shalnev
Sergei Golubchik wrote: Hi! On Dec 02, Vlad Shalnev wrote: Looks like a bug. Could you submit a bugreport at http://bugs.mysql.com ? I've submitted a bugreport. Downgrade to 3.23 and wait for this problem solving. Thanks for all It happens after upgrade from 3.23.46. mysql> create table a ( a i

Re: Comparing bug in 4.1.7

2004-12-02 Thread Paul DuBois
At 11:42 -0500 12/2/04, Michael Stassen wrote: Roger Baklund wrote: This is (as I see it) a documentation issue, I was not trying to say that Vlad was "wrong". Right, that's why I'm copying the docs list. I updated the description to account for the cases when there are 1 or 2 NULL operands. It

Re: Comparing bug in 4.1.7

2004-12-02 Thread Fredrick Bartlett
I upgraded from 5.01 to 5.02 and now I am getting the error localhost is not allowed to connect to this MySQL server. What should I do, root cannot connect a well. I'm currently using win32 and have old-passwords in my.cnf Thanks -- MySQL General Mailing List For list archives: http://lists.mys

Re: Comparing bug in 4.1.7

2004-12-02 Thread Michael Stassen
Roger Baklund wrote: This is (as I see it) a documentation issue, I was not trying to say that Vlad was "wrong". Right, that's why I'm copying the docs list. While we're at it: the term "non-zero"... what does it mean? As we all know, NULL != 0, and 0 == zero, consequently NULL must be non-zero

RE: Comparing bug in 4.1.7

2004-12-02 Thread David Brodbeck
> -Original Message- > From: Roger Baklund [mailto:[EMAIL PROTECTED] > This definition (from the manual) is self-contradicting: 1 OR NULL > should evaluate to 1 because "any operand is non-zero", but it should > also evaluate to NULL because "any operand is NULL". > > http://dev.mysql.c

Re: Comparing bug in 4.1.7

2004-12-02 Thread Roger Baklund
Michael Stassen wrote: You are overthinking the issue. Probably. :) mysql> SELECT VERSION(); +---+ | VERSION() | +---+ | 4.1.7 | +---+ 1 row in set (0.00 sec) mysql> SELECT 1 OR NULL; +---+ | 1 OR NULL | +---+ | 1 | +---+ 1 row in set (0.0

Re: Comparing bug in 4.1.7

2004-12-02 Thread Michael Stassen
You are overthinking the issue. mysql> SELECT VERSION(); +---+ | VERSION() | +---+ | 4.1.7 | +---+ 1 row in set (0.00 sec) mysql> SELECT 1 OR NULL; +---+ | 1 OR NULL | +---+ | 1 | +---+ 1 row in set (0.00 sec) We do not need to know x to d

Re: Comparing bug in 4.1.7

2004-12-02 Thread Roger Baklund
Vlad Shalnev wrote: * from the manual: >> Logical OR. Evaluates to 1 if any operand is non-zero, to NULL if any >> operand is NULL, otherwise 0 is returned. * Roger Baklund: This definition (from the manual) is self-contradicting: 1 OR NULL should evaluate to 1 because "any operand is non-zero", bu

Re: Comparing bug in 4.1.7

2004-12-02 Thread Sergei Golubchik
Hi! On Dec 02, Vlad Shalnev wrote: Looks like a bug. Could you submit a bugreport at http://bugs.mysql.com ? > It happens after upgrade from 3.23.46. > > mysql> create table a ( a int not null ); > Query OK, 0 rows affected (0.00 sec) > > mysql> select min( a ) is null or null from a; > +

Re: Comparing bug in 4.1.7

2004-12-02 Thread Roger Baklund
Vlad Shalnev wrote: [...] OR || Logical OR. Evaluates to 1 if any operand is non-zero, to NULL if any operand is NULL, otherwise 0 is returned. This definition (from the manual) is self-contradicting: 1 OR NULL should evaluate to 1 because "any operand is non-zero", but it should also evaluate t

Re: Comparing bug in 4.1.7

2004-12-02 Thread Vlad Shalnev
Bernard Clement wrote: Hello Vlad, The reason is: "If one or both arguments are NULL, the result of the comparison is NULL, except for the NULL-safe <=> equality comparison operator. Thereore, "or NULL" in your select statement will always returned NULL. You can find all the rules for comparai

Re: Comparing bug in 4.1.7

2004-12-02 Thread Bernard Clement
Hello Vlad, The reason is: "If one or both arguments are NULL, the result of the comparison is NULL, except for the NULL-safe <=> equality comparison operator. Thereore, "or NULL" in your select statement will always returned NULL. You can find all the rules for comparaison at URL: http://de