Skip to content

Commit

Permalink
fix nullability of function that retun setof
Browse files Browse the repository at this point in the history
  • Loading branch information
ZelvaMan committed Apr 26, 2024
1 parent 59f834d commit 83d1526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbGen/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func addParamsToRoutine(conn *common.DbConn, routine *DbRoutine) error {
where specific_schema = $1
and specific_name = $2
union
select c.ordinal_position::int, c.column_name::text, 'OUT', c.udt_name::text, c.column_default is not null
select c.ordinal_position::int, c.column_name::text, 'OUT', c.udt_name::text, c.is_nullable = 'YES'
from information_schema.columns c
where c.table_name = $3
and c.table_schema = coalesce($4, 'public')
Expand Down
2 changes: 1 addition & 1 deletion dbGen/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func getColumnMapping(param DbParameter, routineMapping *RoutineMapping, globalM
}

if explicitMapping.MappedType != "" {
typeMapping, err = handleTypeMappingOverride(explicitMapping.MappedType, "", config)
typeMapping, err = handleTypeMappingOverride(explicitMapping.MappedType, explicitMapping.MappingFunction, config)
if err != nil {
return false, nil, err
}
Expand Down

0 comments on commit 83d1526

Please sign in to comment.