Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25186] [bugfix] Run-time exception of expression BIT_LENGTH('CUBRID') #5650

Merged

Conversation

ctshim
Copy link
Contributor

@ctshim ctshim commented Nov 28, 2024

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

  • bit_length(), octet_length()에서 LOB타입이 지원되도록 합니다.

  • hex()에 대한 prepare-execute 방식에서 타입 변환에 대한 오류를 수정합니다.

  • bit_length(), octet_length()에서 blob 지원

create table blob_tbl(c1 blob);
prepare st from  'select bit_length(c1), octet_length(c1) from blob_tbl';

AS-IS
ERROR: Semantic: Cannot coerce [dba.blob_tbl].c1 to type varchar. select bit_length( cast([dba.blob_tbl].c1 as varchar)), oc...

TO-BE
Execute OK.

  • hex() 함수 오류 수정
  prepare st from 'select hex(date''2024-12-03''), hex(?)';
  execute st using date'2024-12-03'; 

AS-IS
ERROR: Invalid data type. The arguments contain an invalid data type.

TO-BE

   hex(date '2024-12-03')   hex( ?:0 )
============================================
  '31322F30332F32303234'  '31322F30332F32303234'

@ctshim ctshim added the bug label Nov 28, 2024
@ctshim ctshim added this to the fig-cake milestone Nov 28, 2024
@ctshim ctshim self-assigned this Nov 28, 2024
@ctshim ctshim marked this pull request as ready for review December 9, 2024 00:29
@ctshim ctshim requested a review from beyondykk9 as a code owner December 9, 2024 00:29
@ctshim ctshim requested review from hgryoo and vimkim December 9, 2024 00:30
@ctshim ctshim merged commit 706d93b into CUBRID:develop Dec 12, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants