RETURNS SETOF <table name>
should return the correct DB model instead of []interface{}
#941
Labels
RETURNS SETOF <table name>
should return the correct DB model instead of []interface{}
#941
While working on a solution for #364 which is based on SQL functions, I hit the following problem.
The Go methods generated from calls to SQL functions, that return
SETOF
, should return the correct DB model.Same example as in #940.
Given the following definition for PostgreSQL:
and the query definition:
the following Go method signature is generated:
This Go method does return
[]interface{}
instead of[]Foo
frommodels.go
.Update: fix typo
The text was updated successfully, but these errors were encountered: