test(postgresql): Confirm DELETE_ALL qualifies bare table names with … - #929
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's GuideAdds a new PostgreSQL integration test that reproduces issue 397’s non-default schema scenario and verifies that DatabaseOperation.DELETE_ALL correctly qualifies unqualified table names with the connection schema, independent of FEATURE_QUALIFIED_TABLE_NAMES. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reached
Next review available in: 5 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider using try-with-resources for the
StatementandResultSetinstances in both setup/teardown and the test to ensure they are closed reliably even if an exception occurs. - Instead of
if (!Objects.isNull(_connection)), prefer a direct null check (_connection != null) for clarity and consistency with common Java style in the rest of the codebase.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider using try-with-resources for the `Statement` and `ResultSet` instances in both setup/teardown and the test to ensure they are closed reliably even if an exception occurs.
- Instead of `if (!Objects.isNull(_connection))`, prefer a direct null check (`_connection != null`) for clarity and consistency with common Java style in the rest of the codebase.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
Addressed both: |
…schema
* Reproduces the second scenario from issue 397: an IDatabaseConnection
configured with a non-default schema (e.g. "bi"), given an unqualified
table name, without FEATURE_QUALIFIED_TABLE_NAMES. Confirms
DatabaseOperation.DELETE_ALL already qualifies the generated SQL with
the connection's own schema via AbstractOperation.getQualifiedName(),
independent of that feature flag.
* Verified locally that this fails exactly as originally reported
("relation ... does not exist") when the connection has no schema
configured, and succeeds once the connection is constructed with its
schema - confirming the test exercises the real scenario rather than
passing vacuously.
* The report's other scenario, a schema-qualified table name failing to
resolve, is the case-folding defect already fixed and covered by
PostgresqlUppercaseSchemaIT (issue 656).
Refs: 397
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017rt6YcFdhBCwafLp6n7mcZ
6ce3683 to
fb7e2cf
Compare
…schema
Refs: 397
Claude-Session: https://claude.ai/code/session_017rt6YcFdhBCwafLp6n7mcZ
Summary by Sourcery
Tests: