mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed that NULL and 0 returns 0 instead of NULL
This is coded to not cause a speed impact on top level AND expressions where we don't care if an AND expression returns 0 or NULL
This commit is contained in:
@@ -30,7 +30,7 @@ SELECT (NULL OR NULL) IS NULL;
|
||||
1
|
||||
select NULL AND 0, 0 and NULL;
|
||||
NULL AND 0 0 and NULL
|
||||
NULL 0
|
||||
0 0
|
||||
select inet_ntoa(null),inet_aton(null),inet_aton("122.256"),inet_aton("122.226."),inet_aton("");
|
||||
inet_ntoa(null) inet_aton(null) inet_aton("122.256") inet_aton("122.226.") inet_aton("")
|
||||
NULL NULL NULL NULL NULL
|
||||
|
||||
Reference in New Issue
Block a user