volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.7k stars 542 forks source link

Use coalesce to use column_full_type when column_type is null #1365

Closed mattdbush closed 6 months ago

mattdbush commented 6 months ago

User defined types generate NULL values for column_type.

Error produced while performing modgen generation: Fix Scan error on column index 1, name "column_type": converting NULL to string is unsupported, by coalescing column_type and if null replacing with column_full_type value.