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-25139] When using oracle style empty string, the result of replace is null. #4848

Merged
merged 7 commits into from
Jan 3, 2024

Conversation

beyondykk9
Copy link
Contributor

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

When setting oracle style empty string=y, the result is null when using syntax such as replace(?,'-','').

CREATE TABLE tbl(i VARCHAR(100));
INSERT INTO tbl SELECT '2013-01-01' FROM dual;
SELECT REPLACE(i,'-','') FROM tbl;

Expected Result

  replace(i, '-', '')
======================
  '20130101' 

Actual Result:

  replace(i, '-', '')
======================
  NULL

@beyondykk9 beyondykk9 added bug legacy inherited legacy issues labels Dec 28, 2023
@beyondykk9 beyondykk9 added this to the fig-cake milestone Dec 28, 2023
@beyondykk9 beyondykk9 requested review from hyunikn and ctshim December 28, 2023 01:54
@beyondykk9 beyondykk9 self-assigned this Dec 28, 2023
@beyondykk9 beyondykk9 merged commit 1251e63 into CUBRID:develop Jan 3, 2024
4 checks passed
@beyondykk9 beyondykk9 deleted the CBRD-25139 branch January 3, 2024 03:44
beyondykk9 added a commit that referenced this pull request Mar 29, 2024
beyondykk9 added a commit that referenced this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug legacy inherited legacy issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants