Skip to content

DBMS_OUTPUT: NULL and empty string should be stored as NULL #25

@rophy

Description

@rophy

Description

Oracle treats empty strings as NULL. In DBMS_OUTPUT, both PUT_LINE('') and PUT_LINE(NULL) should store actual NULL values, which GET_LINE returns as SQL NULL.

Current Behavior

NULL values were being stored as empty strings internally.

Expected Behavior

  • PUT_LINE('') should store NULL
  • PUT_LINE(NULL) should store NULL
  • GET_LINE should return SQL NULL for these values

Verification

Verified against Oracle 23.26 Free.

Fix

Commit 1c3339a in PR #15 addresses this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions