GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — SQLC does not infer nullability for subqueries in view SELECT · Issue #4262 · sqlc-dev/sqlc Open Labels DescriptionVersion1.30.0 What happened?I have a DB with a view like so: I would expect that selecting the description column in the resulting vw_myview would create a nullable type in the SQLC generated struct, but instead a string field is created. So when there are no matches in the subquery, there is a scan error. Relevant log outputDatabase schemaSQL queriesConfigurationversion: "2" sql: - engine: postgresql schema: generated.sql queries: - queries gen: go: package: sqls_erp sql_package: "pgx/v5" out: ../internal/sqls/sql_erp emit_json_tags: true Playground URLNo response What operating system are you using?Linux What database engines are you using?PostgreSQL What type of code are you generating?Go Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions | |||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |