You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "iinow (via GitHub)" <gi...@apache.org> on 2025/08/22 23:52:22 UTC
[PR] [#8166] fix: treat PostgreSQL SQLSTATE as string [gravitino]
iinow opened a new pull request, #8260:
URL: https://github.com/apache/gravitino/pull/8260
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): support xxx"
- "[#233] fix: check null before access result in xxx"
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
Fix bug in `PostgreSQLExceptionConverter` where SQLSTATE codes were parsed as numbers.
Now SQLSTATE is treated as a string to avoid `NumberFormatException` (e.g., "28P01").
### Why are the changes needed?
PostgreSQL SQLSTATE codes can include letters. Parsing them as integers causes runtime errors.
Fix: #8166
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
1. Added unit tests for numeric code ("23505") and non-numeric code ("28P01").
2. Verified tests pass successfully.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8166] fix: treat PostgreSQL SQLSTATE as string [gravitino]
Posted by "shaofengshi (via GitHub)" <gi...@apache.org>.
shaofengshi commented on PR #8260:
URL: https://github.com/apache/gravitino/pull/8260#issuecomment-3218710681
LGTM; @yuqi1129 Yuqi, what do you think?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8166] fix: treat PostgreSQL SQLSTATE as string [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean merged PR #8260:
URL: https://github.com/apache/gravitino/pull/8260
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org