manual.texi Update description of logical AND. (In 3.23.9, it changed

manual.texi	behavior to return NULL, not zero, if either operand is NULL)
parent bd3421c4
......@@ -30526,13 +30526,16 @@ mysql> SELECT 1 || NULL;
@findex && (logical AND)
@item AND
@itemx &&
Logical AND. Returns @code{0} if either argument is @code{0} or @code{NULL},
otherwise returns @code{1}:
Logical AND. For non-@{NULL} operands, returns @code{1} if both operands are
non-zero and @code{0} otherwise.
Returns @code{NULL} if either argument is @code{NULL}:
@example
mysql> SELECT 1 && NULL;
-> 0
mysql> SELECT 1 && 1;
-> 1
mysql> SELECT 1 && 0;
-> 0
mysql> SELECT 1 && NULL;
-> NULL
@end example
@end table
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment