### Version 1.15.0 ### What happened? When a create a table with a column type `string`, which is not a postgres datatype: ``` create table test_table ( id string ); ``` the sqlc code generator **does not** return any errors. It generates a field in Go with type `string`. However, when the migration is applied, an error is returned since the datatype `string` does not exist in postgres. ### Relevant log output _No response_ ### Database schema _No response_ ### SQL queries _No response_ ### Configuration _No response_ ### Playground URL https://play.sqlc.dev/p/377ff1e3c1bac823de845bd66dbffbee9ed4bb328e63f7c291297c6d256c7112 ### What operating system are you using? _No response_ ### What database engines are you using? _No response_ ### What type of code are you generating? _No response_
Activity
test: Add two test cases
fix(compiler): Pull in array information from analyzer (#2864)
kyleconroy commentedon Oct 24, 2023
This is fixed in v1.23.0 by enabling the database-backed query analyzer. We added a test case for this issue so it won’t break in the future.
You can play around with the working example on the playground
fix(compiler): Pull in array information from analyzer (sqlc-dev#2864)