Title: wrap_errors: pgx always returns non-nil error. · Issue #3912 · sqlc-dev/sqlc · GitHub
Open Graph Title: wrap_errors: pgx always returns non-nil error. · Issue #3912 · sqlc-dev/sqlc
X Title: wrap_errors: pgx always returns non-nil error. · Issue #3912 · sqlc-dev/sqlc
Description: Version Other What happened? This error is on 2f9e9d4 PR that introduced the error. Today I tested the wrap error and there's an issue if at line queryConfig.tmpl:92 The error is always not-nil after wrap. cc @kylecarbs @andrewmbenton Re...
Open Graph Description: Version Other What happened? This error is on 2f9e9d4 PR that introduced the error. Today I tested the wrap error and there's an issue if at line queryConfig.tmpl:92 The error is always not-nil aft...
X Description: Version Other What happened? This error is on 2f9e9d4 PR that introduced the error. Today I tested the wrap error and there's an issue if at line queryConfig.tmpl:92 The error is always not-nil...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3912
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wrap_errors: pgx always returns non-nil error.","articleBody":"### Version\n\nOther\n\n### What happened?\n\nThis error is on https://github.com/sqlc-dev/sqlc/commit/2f9e9d41debb4c39549528a10fff8d90c3d3180b\n\n[PR](https://github.com/sqlc-dev/sqlc/pull/3876) that introduced the error.\n\nToday I tested the wrap error and there's an issue if at line [queryConfig.tmpl:92](https://github.com/sqlc-dev/sqlc/pull/3876/files#diff-8d8d3536b89444d1613ebd743835aad2c5fd74b3c090be509c238620b2e5550aR92)\n\nThe error is always not-nil after wrap.\n\ncc @kylecarbs @andrewmbenton \n\n### Relevant log output\n\n```shell\n\n```\n\n### Database schema\n\n```sql\n\n```\n\n### SQL queries\n\n```sql\n\n```\n\n### Configuration\n\n```yaml\n\n```\n\n### Playground URL\n\n_No response_\n\n### What operating system are you using?\n\n_No response_\n\n### What database engines are you using?\n\n_No response_\n\n### What type of code are you generating?\n\n_No response_","author":{"url":"https://github.com/krhubert","@type":"Person","name":"krhubert"},"datePublished":"2025-03-31T22:23:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3912/sqlc/issues/3912"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c87b317-1a90-f1dd-09d1-320a06d22474 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE64:23E45A:1770315:1EE97A5:6A51C715 |
| html-safe-nonce | 77d830c036ccc4425be7ad63ed5407012147d3d332b207974a9b15daf9f68576 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTY0OjIzRTQ1QToxNzcwMzE1OjFFRTk3QTU6NkE1MUM3MTUiLCJ2aXNpdG9yX2lkIjoiMTA5ODI4MTczOTkwNDczMDkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1f9b5f8341e9a1d6aa7050fbd58ce6035541d12806a515f637a08cd00d44f261 |
| hovercard-subject-tag | issue:2961707259 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/3912/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f82f6b945ebc4937406f6b54cd89647737130f784b345d1e48f431c0e132cbc2/sqlc-dev/sqlc/issues/3912 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f82f6b945ebc4937406f6b54cd89647737130f784b345d1e48f431c0e132cbc2/sqlc-dev/sqlc/issues/3912 |
| og:image:alt | Version Other What happened? This error is on 2f9e9d4 PR that introduced the error. Today I tested the wrap error and there's an issue if at line queryConfig.tmpl:92 The error is always not-nil aft... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | krhubert |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width