Skip to content

Guard nil cache in wpgx invalidation hooks#14

Merged
Stumble merged 1 commit intoStumble:mainfrom
DBL-Lee:DBL-Lee/sqlc-cache-guard
Apr 20, 2026
Merged

Guard nil cache in wpgx invalidation hooks#14
Stumble merged 1 commit intoStumble:mainfrom
DBL-Lee:DBL-Lee/sqlc-cache-guard

Conversation

@DBL-Lee
Copy link
Copy Markdown

@DBL-Lee DBL-Lee commented Apr 20, 2026

This change adds nil-cache guards before invalidation work runs in the wpgx query template. It prevents nil pointer issues when cache invalidation is configured but no cache instance is attached. The full workspace diff is limited to internal/codegen/golang/templates/wpgx/queryCode.tmpl with these guard checks added in each invalidation path.

@Stumble Stumble merged commit 88a5511 into Stumble:main Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants