From 6eee72cd9ff2415cfbfb61ce5515589798e4bfd7 Mon Sep 17 00:00:00 2001 From: youngjinj Date: Fri, 21 Apr 2023 15:56:29 +0900 Subject: [PATCH] For backwards compatibility, casting from empty string to bigint is allowed. --- src/object/object_domain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/object/object_domain.c b/src/object/object_domain.c index d027805bfa9..19b6e1c98ff 100644 --- a/src/object/object_domain.c +++ b/src/object/object_domain.c @@ -5044,7 +5044,9 @@ tp_atobi (const DB_VALUE * src, DB_BIGINT * num_value, DB_DATA_STATUS * data_sta } } - if (!is_hex) + /* See CBRD-24780. + * For backwards compatibility, casting from empty string to bigint is allowed. */ + if (!is_hex && *strp != '\0') { /* check whether is scientific format */ p = strp;