sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

fix: generate pointer types for nullable enum columns with emit_pointers_for_null_types

Open stampflit opened this issue 4 months ago • 1 comments

fixes https://github.com/sqlc-dev/sqlc/issues/4052

The generated QueryParams struct for the example from the issue is indeed:

type SearchFoodParams struct {
    Food     string
    FoodType *FoodType
}

I wrote a minimal example to verify that this works as intended with sqlc.

stampflit avatar Aug 10 '25 09:08 stampflit

Bump

stampflit avatar Oct 12 '25 11:10 stampflit