Repository navigation
Fix the Statistics node failing to list its children in Object Explorer. #10310 - #10639
kundansable wants to merge 3 commits into
Conversation
…er. pgadmin-org#10310 pgAdmin renders its templates with trim_blocks, which removes the newline after a block tag. nodes.sql ended its WHERE clause with a conditional, so with neither a statistics id nor schema_diff set, which is what expanding the Statistics collection sends, the SQL ran into "::oidORDER BY" and the server rejected it. Give each condition its own line ending in plain text, and add a test that renders the template for every parameter combination and runs it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe statistics SQL template now separates its base ChangesStatistics query filtering
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
hiteshjambhale
left a comment
There was a problem hiding this comment.
Tested. Looks good to me. Please fix the pycodestyle and merge.
pgAdmin renders its templates with trim_blocks, which removes the newline after a block tag. nodes.sql ended its WHERE clause with a conditional, so with neither a statistics id nor schema_diff set, which is what expanding the Statistics collection sends, the SQL ran into "::oidORDER BY" and the server rejected it.
Give each condition its own line ending in plain text, and add a test that renders the template for every parameter combination and runs it.
Summary by CodeRabbit
Bug Fixes
Tests