Commit 53c0d252 authored by unknown's avatar unknown

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)


Docs/manual.texi:
  Update description of logical AND. (In 3.23.9, it changed
  behavior to return NULL, not zero, if either operand is NULL)
parent faa0408c
...@@ -30526,13 +30526,16 @@ mysql> SELECT 1 || NULL; ...@@ -30526,13 +30526,16 @@ mysql> SELECT 1 || NULL;
@findex && (logical AND) @findex && (logical AND)
@item AND @item AND
@itemx && @itemx &&
Logical AND. Returns @code{0} if either argument is @code{0} or @code{NULL}, Logical AND. For non-@{NULL} operands, returns @code{1} if both operands are
otherwise returns @code{1}: non-zero and @code{0} otherwise.
Returns @code{NULL} if either argument is @code{NULL}:
@example @example
mysql> SELECT 1 && NULL; mysql> SELECT 1 && 1;
-> 0 -> 1
mysql> SELECT 1 && 0; mysql> SELECT 1 && 0;
-> 0 -> 0
mysql> SELECT 1 && NULL;
-> NULL
@end example @end example
@end table @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