| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0ec3792b-35e5-4fbc-d675-59886edc8363 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EC8A:1F2B:2BC05A:3AD1E9:6B019262 |
| html-safe-nonce | 98b109386fcd61d07a19c47199de8c5a7fd2ee1aa08b05ac81aa0ac20b9255c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzhBOjFGMkI6MkJDMDVBOjNBRDFFOTo2QjAxOTI2MiIsInZpc2l0b3JfaWQiOiI1NzI3ODc0NjY2NzA2NjA0NjQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e16059c50a4dd2db63b9c2d118a92fe96c5b5539c2ffb8a7a4e8244dee2ae451 |
| hovercard-subject-tag | pull_request:2225628996 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sqlc-dev/sqlc/3739/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/06993a0a8501879acd884c4ae0a05b5c80e9c48999da7dcef7aab4aaff7466c7/sqlc-dev/sqlc/pull/3739 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06993a0a8501879acd884c4ae0a05b5c80e9c48999da7dcef7aab4aaff7466c7/sqlc-dev/sqlc/pull/3739 |
| og:image:alt | Trying to solve #3710
JSON traversal operator on selected columns
Based on postgresql docs, operator ->> and #>> should return string, and since this is JSON and it could have null valu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | swallowstalker |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/sqlc-dev/sqlc/pull/3739#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3739 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3739 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sqlc-dev%2Fsqlc |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3739 |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3739 |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3739 |
| sqlc-dev | https://github.com/sqlc-dev |
| sqlc | https://github.com/sqlc-dev/sqlc |
| Code | https://github.com/sqlc-dev/sqlc |
| Issues600 (600) | https://github.com/sqlc-dev/sqlc/issues |
| Pull requests132 (132) | https://github.com/sqlc-dev/sqlc/pulls |
| Discussions | https://github.com/sqlc-dev/sqlc/discussions |
| Actions | https://github.com/sqlc-dev/sqlc/actions |
| Projects | https://github.com/sqlc-dev/sqlc/projects |
| Security and quality | https://github.com/sqlc-dev/sqlc/security |
| Insights | https://github.com/sqlc-dev/sqlc/insights |
| https://github.com/sqlc-dev/sqlc |
| swallowstalker | https://github.com/swallowstalker |
| sqlc-dev:main | https://github.com/sqlc-dev/sqlc/tree/main |
| swallowstalker:text-alias | https://github.com/swallowstalker/sqlc/tree/text-alias |
| Conversation | https://github.com/sqlc-dev/sqlc/pull/3739 |
| Commits11 (11) | https://github.com/sqlc-dev/sqlc/pull/3739/commits |
| Checks | https://github.com/sqlc-dev/sqlc/pull/3739/checks |
| Files changed | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| fix(postgresql): set query result column nullable if selected column contains json operator or null value in case expression | https://github.com/sqlc-dev/sqlc/pull/3739#top |
| swallowstalker | https://github.com/swallowstalker |
| sqlc-dev:main | https://github.com/sqlc-dev/sqlc/tree/main |
| swallowstalker:text-alias | https://github.com/swallowstalker/sqlc/tree/text-alias |
|
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 10, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issue-2729231999 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| #3710 | https://github.com/sqlc-dev/sqlc/issues/3710 |
| postgresql docs | https://www.postgresql.org/docs/9.5/functions-json.html |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
|
Dec 10, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739#ref-issue-2663996154 |
|
Postgres: casting result to text results in sqlc generating a string instead of a nullable string
#3710
| https://github.com/sqlc-dev/sqlc/issues/3710 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 10, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#event-15597112534 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 10, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#event-15597226033 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 12, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#event-15631182442 |
| https://github.com/veqryn |
| veqryn | https://github.com/veqryn |
| Dec 12, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2540009427 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/veqryn |
| veqryn | https://github.com/veqryn |
| Dec 12, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2540013005 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 13, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2540273365 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| @kyleconroy | https://github.com/kyleconroy |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 13, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2540279491 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| swallowstalker | https://github.com/swallowstalker |
| December 13, 2024 07:41 | https://github.com/sqlc-dev/sqlc/pull/3739#commits-pushed-9ea4ce3 |
|
| https://github.com/swallowstalker |
| feat: adding nullable text if selected column is json operator and ca… | https://github.com/sqlc-dev/sqlc/pull/3739/commits/9ea4ce36057388dbc4bdcf34ab68697261807bff |
| 9ea4ce3 | https://github.com/sqlc-dev/sqlc/pull/3739/commits/9ea4ce36057388dbc4bdcf34ab68697261807bff |
|
| https://github.com/swallowstalker |
| test: fix fmt | https://github.com/sqlc-dev/sqlc/pull/3739/commits/25274e88cbe21328480a13749b241a5528851abe |
| 25274e8 | https://github.com/sqlc-dev/sqlc/pull/3739/commits/25274e88cbe21328480a13749b241a5528851abe |
|
| https://github.com/swallowstalker |
| test: delete fourth column | https://github.com/sqlc-dev/sqlc/pull/3739/commits/f61bfcc6721e6c71786bbb6f64ad039c74a2ccb9 |
| f61bfcc | https://github.com/sqlc-dev/sqlc/pull/3739/commits/f61bfcc6721e6c71786bbb6f64ad039c74a2ccb9 |
|
| https://github.com/swallowstalker |
| test: avoid test format because the reversed query from raw statement… | https://github.com/sqlc-dev/sqlc/pull/3739/commits/049fb49304b7a7b5fda2448469fbf9b7e210ed13 |
| 049fb49 | https://github.com/sqlc-dev/sqlc/pull/3739/commits/049fb49304b7a7b5fda2448469fbf9b7e210ed13 |
|
| https://github.com/swallowstalker |
| feat: case expr handling and json operator handling | https://github.com/sqlc-dev/sqlc/pull/3739/commits/ebc8a772cff26624f985b77196371803887bdfda |
| ebc8a77 | https://github.com/sqlc-dev/sqlc/pull/3739/commits/ebc8a772cff26624f985b77196371803887bdfda |
|
| https://github.com/swallowstalker |
| fix: change managed-db to base | https://github.com/sqlc-dev/sqlc/pull/3739/commits/f154a2fbf450bfa673e71fafda93086234ee90e2 |
| f154a2f | https://github.com/sqlc-dev/sqlc/pull/3739/commits/f154a2fbf450bfa673e71fafda93086234ee90e2 |
|
| https://github.com/swallowstalker |
| test: add null::text as default case expr | https://github.com/sqlc-dev/sqlc/pull/3739/commits/822e73fb30eaca38b41f8b585da4deaee0522ad5 |
| 822e73f | https://github.com/sqlc-dev/sqlc/pull/3739/commits/822e73fb30eaca38b41f8b585da4deaee0522ad5 |
|
| https://github.com/swallowstalker |
| test: changing author email | https://github.com/sqlc-dev/sqlc/pull/3739/commits/e7ddabf111cb76ac7999fb01f1faaf8c4f404000 |
| e7ddabf | https://github.com/sqlc-dev/sqlc/pull/3739/commits/e7ddabf111cb76ac7999fb01f1faaf8c4f404000 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| force-pushed | https://github.com/sqlc-dev/sqlc/compare/dcf4684615f02954fddfa1870ec819e8cbea6cac..e7ddabf111cb76ac7999fb01f1faaf8c4f404000 |
| dcf4684 | https://github.com/sqlc-dev/sqlc/commit/dcf4684615f02954fddfa1870ec819e8cbea6cac |
| e7ddabf | https://github.com/sqlc-dev/sqlc/commit/e7ddabf111cb76ac7999fb01f1faaf8c4f404000 |
|
Compare
| https://github.com/sqlc-dev/sqlc/compare/dcf4684615f02954fddfa1870ec819e8cbea6cac..e7ddabf111cb76ac7999fb01f1faaf8c4f404000 |
| December 13, 2024 00:43 | https://github.com/sqlc-dev/sqlc/pull/3739#event-15642094184 |
| https://github.com/veqryn |
| veqryn | https://github.com/veqryn |
| Dec 13, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2542526864 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 19, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2552925174 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| swallowstalker | https://github.com/swallowstalker |
| December 19, 2024 14:02 | https://github.com/sqlc-dev/sqlc/pull/3739#commits-pushed-d0cbfe4 |
|
| https://github.com/swallowstalker |
| Merge branch 'main' into text-alias | https://github.com/sqlc-dev/sqlc/pull/3739/commits/d0cbfe473ddce2e0e4f87a672265582c345a744f |
| d0cbfe4 | https://github.com/sqlc-dev/sqlc/pull/3739/commits/d0cbfe473ddce2e0e4f87a672265582c345a744f |
|
| https://github.com/swallowstalker |
| fix: change type precedence auto-selection to data type any, to allow… | https://github.com/sqlc-dev/sqlc/pull/3739/commits/409d2fbdf81ebb483ed9ba58cd935b3d4e4119f1 |
| 409d2fb | https://github.com/sqlc-dev/sqlc/pull/3739/commits/409d2fbdf81ebb483ed9ba58cd935b3d4e4119f1 |
| https://github.com/apps/dosubot |
| dosubot | https://github.com/apps/dosubot |
|
size:XL
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Asize%3AXL |
| Dec 19, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#event-15714770672 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
|
Dec 19, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739#pullrequestreview-2513938805 |
|
View reviewed changes
| https://github.com/sqlc-dev/sqlc/pull/3739/files/409d2fbdf81ebb483ed9ba58cd935b3d4e4119f1 |
| internal/compiler/output_columns.go | https://github.com/sqlc-dev/sqlc/pull/3739/files/409d2fbdf81ebb483ed9ba58cd935b3d4e4119f1#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
| swallowstalker | https://github.com/swallowstalker |
| Dec 19, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#discussion_r1891530078 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
|
Dec 19, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739#pullrequestreview-2513942707 |
|
View reviewed changes
| https://github.com/sqlc-dev/sqlc/pull/3739/files/409d2fbdf81ebb483ed9ba58cd935b3d4e4119f1 |
| internal/compiler/output_columns.go | https://github.com/sqlc-dev/sqlc/pull/3739/files/409d2fbdf81ebb483ed9ba58cd935b3d4e4119f1#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
| swallowstalker | https://github.com/swallowstalker |
| Dec 19, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#discussion_r1891532476 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
|
| https://github.com/swallowstalker |
| test: uncommitted test case for GetNullable2G | https://github.com/sqlc-dev/sqlc/pull/3739/commits/19ab64230cc3c03f6e29eb96ecbf8cada50df75d |
| 19ab642 | https://github.com/sqlc-dev/sqlc/pull/3739/commits/19ab64230cc3c03f6e29eb96ecbf8cada50df75d |
| https://github.com/veqryn |
| veqryn | https://github.com/veqryn |
| Dec 22, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2558381794 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Dec 22, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2558386254 |
| @kyleconroy | https://github.com/kyleconroy |
| @kyleconroy | https://github.com/kyleconroy |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/swallowstalker |
| swallowstalker | https://github.com/swallowstalker |
| Jan 27, 2025 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-2615127087 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/ken-talltree-io |
| ken-talltree-io | https://github.com/ken-talltree-io |
| Oct 24, 2026 | https://github.com/sqlc-dev/sqlc/pull/3739#issuecomment-6384818263 |
| #4262 | https://github.com/sqlc-dev/sqlc/issues/4262 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
| https://github.com/ken-talltree-io |
| ken-talltree-io | https://github.com/ken-talltree-io |
|
Oct 24, 2026
| https://github.com/sqlc-dev/sqlc/pull/3739#ref-pullrequest-6013493946 |
|
compiler: a scalar subquery's column is nullable
#4654
| https://github.com/sqlc-dev/sqlc/pull/4654 |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3739 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
|
size:XL
| https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3Asize%3AXL |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739 |
|
| https://github.com/swallowstalker |
|
| https://github.com/veqryn |
|
| https://github.com/ken-talltree-io |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |