summaryrefslogtreecommitdiff
path: root/sql/spatial.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2020-05-12 19:45:21 +0400
committerAlexander Barkov <bar@mariadb.com>2020-05-12 19:45:21 +0400
commit9f20968169e21fcf8941041a8a7ce06013a79bd9 (patch)
treeae3fa2cf852ab1a2f2dd393851d6d37a801fa421 /sql/spatial.cc
parentdb537a8372dea05ddfe10fbd5c317214658bfdbd (diff)
downloadmariadb-git-9f20968169e21fcf8941041a8a7ce06013a79bd9.tar.gz
MDEV-20261 NULL passed to String::eq, SEGV, server crash, regression in 10.4
Type_handler_xxx::Item_const_eq() can handle only non-NULL values. The code in Item_basic_value::eq() did not take this into account. Adding a test to detect three different combinations: - Both values are NULLs, return true. - Only one value is NULL, return false. - Both values are not NULL, call Type_handler::Item_const_eq() to check equality.
Diffstat (limited to 'sql/spatial.cc')
0 files changed, 0 insertions, 0 deletions