Skip to content

Commit

Permalink
[CBRD-24780] An error occurs when casting an empty string to bigint. (#…
Browse files Browse the repository at this point in the history
…4320)

http://jira.cubrid.org/browse/CBRD-24780

For backwards compatibility, casting from empty string to bigint is allowed.
  • Loading branch information
youngjinj authored Apr 26, 2023
1 parent bfde227 commit a428310
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/object/object_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a428310

Please sign in to comment.