1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-04 17:23:46 +03:00
Files
mariadb/plugin
Alexander Barkov 839ad5e132 MDEV-22758 Assertion `!item->null_value' failed in Type_handler_inet6::make_sort_key_part
When some expression of an INET6 data type involves conversion to INET6 from
other data types, e.g. in:

- CAST:

    SELECT CAST(non_inet6_expr AS INET6)

- CASE and hybrid functions:

    SELECT CASE WHEN expr THEN inet6_expr ELSE non_inet6_expr END

- UNION:

    SELECT inet6_expr UNION SELECT non_inet6_expr

the result column must be fixed as NULL-able even if the non-inet6 expression itself
is not NULL-able, because at the execution time the conversion can fail.

Details:
- Forcing NULL-ability if conversion from some data type to INET6 is involved
  (for non-constant or for expensive expressions).
- Non-expensive constant expressions are tested for NULL-ability at fix_fields() time,
  so things like `CAST('::' AS INET6)` are still detected as NOT NULL.
- Adding "bool warn" parameter into a few methods, to avoid redundant warnings
  at fix_fields() time when calculating NULL-ability of constant values.
2020-06-03 18:30:12 +04:00
..
2019-05-14 17:18:46 +03:00
2019-05-13 17:54:04 +03:00
2019-07-20 09:09:28 +02:00
2019-05-13 17:54:04 +03:00
2019-08-13 18:57:00 +03:00
2019-05-13 17:54:04 +03:00
2019-10-31 11:19:35 +01:00
2020-05-05 21:16:22 +03:00
2019-05-11 22:19:05 +03:00
2019-10-31 11:19:35 +01:00
2020-05-31 10:28:59 +03:00
2020-04-29 15:40:51 +03:00