GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix issue 2201: unexpected empty string behavior by jrgemignani · Pull Request #2203 · apache/age

Conversation

@jrgemignani

@jrgemignani jrgemignani commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

This PR fixes the issue of some string functions returning NULL instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring, and replace.

Added additional regression tests. Corrected previous tests.

modified:   regress/expected/expr.out
modified:   regress/sql/expr.sql
modified:   src/backend/utils/adt/agtype.c

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jrgemignani
jrgemignani requested a review from MuhammadTahaNaveed August 12, 2025 19:57
@github-actions github-actions Bot added master override-stale To keep issues/PRs untouched from stale action labels Aug 12, 2025
@jrgemignani jrgemignani mentioned this pull request Aug 12, 2025
Unexpected behavior when using empty string '' in string functions in Apache AGE #2201
Closed
@jrgemignani

jrgemignani commented Aug 12, 2025

Copy link
Copy Markdown
Contributor Author

@MuhammadTahaNaveed There appears to be an issue with the JDBC driver test that is unrelated to this PR.

MuhammadTahaNaveed reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MuhammadTahaNaveed

MuhammadTahaNaveed commented Aug 13, 2025

Copy link
Copy Markdown
Member

@MuhammadTahaNaveed There appears to be an issue with the JDBC driver test that is unrelated to this PR.

PR #2206 fixes it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

John Gemignani
fix issue 2201: unexpected empty string behavior
313e2d0
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
@jrgemignani
jrgemignani force-pushed the issue_2201_empty_string branch from 32b4ec8 to 313e2d0 Compare August 13, 2025 15:08
MuhammadTahaNaveed
MuhammadTahaNaveed approved these changes Aug 13, 2025
View reviewed changes
@MuhammadTahaNaveed
MuhammadTahaNaveed merged commit 2803ffa into apache:master Aug 13, 2025
jrgemignani added a commit to jrgemignani/age that referenced this pull request Aug 22, 2025
@jrgemignani
Fix issue 2201: unexpected empty string behavior (apache#2203)
a1bb688
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
@jrgemignani jrgemignani mentioned this pull request Aug 22, 2025
Pg16 to current master #2209
Merged
MuhammadTahaNaveed pushed a commit that referenced this pull request Aug 22, 2025
@jrgemignani @MuhammadTahaNaveed
Fix issue 2201: unexpected empty string behavior (#2203)
52911e6
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
jrgemignani added a commit to jrgemignani/age that referenced this pull request Sep 9, 2025
@jrgemignani
Fix issue 2201: unexpected empty string behavior (apache#2203)
29bd979
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
@jrgemignani jrgemignani mentioned this pull request Sep 9, 2025
Add missing PRs to PG17 #2218
Merged
MuhammadTahaNaveed pushed a commit that referenced this pull request Sep 15, 2025
@jrgemignani @MuhammadTahaNaveed
Fix issue 2201: unexpected empty string behavior (#2203)
4599906
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
jrgemignani added a commit to jrgemignani/age that referenced this pull request Oct 15, 2025
@jrgemignani
Fix issue 2201: unexpected empty string behavior (apache#2203)
6011b8a
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
@jrgemignani jrgemignani mentioned this pull request Oct 15, 2025
Pg15 to current master prior to 1.6.0 release #2231
Merged
MuhammadTahaNaveed pushed a commit that referenced this pull request Oct 17, 2025
@jrgemignani @MuhammadTahaNaveed
Fix issue 2201: unexpected empty string behavior (#2203)
a2e608c
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
jrgemignani added a commit to jrgemignani/age that referenced this pull request Oct 17, 2025
@jrgemignani
Fix issue 2201: unexpected empty string behavior (apache#2203)
893b8cf
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
@jrgemignani jrgemignani mentioned this pull request Oct 17, 2025
Pg14 to current master #2232
Merged
MuhammadTahaNaveed pushed a commit that referenced this pull request Oct 17, 2025
@jrgemignani @MuhammadTahaNaveed
Fix issue 2201: unexpected empty string behavior (#2203)
4608cd4
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
jrgemignani added a commit to jrgemignani/age that referenced this pull request Oct 28, 2025
@jrgemignani
Fix issue 2201: unexpected empty string behavior (apache#2203)
48d4777
This PR fixes the issue of some string functions returning NULL
instead of the empty string.

The string functions affected and corrected are -

reverse, toupper, tolower, rtrim, ltrim, trim, right, left, substring,
and replace.

Added additional regression tests. Corrected previous tests.

    modified:   regress/expected/expr.out
    modified:   regress/sql/expr.sql
    modified:   src/backend/utils/adt/agtype.c
@jrgemignani jrgemignani mentioned this pull request Oct 28, 2025
PG13 to current master #2237
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@MuhammadTahaNaveed MuhammadTahaNaveed MuhammadTahaNaveed approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

master override-stale To keep issues/PRs untouched from stale action

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jrgemignani @MuhammadTahaNaveed
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.