mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
Changed return type of computed field to numeric
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9968 GitOrigin-RevId: 94a1d1d354488577089e0d3e027f3ee1bc53095d
This commit is contained in:
parent
929773d5b4
commit
88a2bf1b7d
@ -107,7 +107,7 @@ computedFieldSetupActions testEnv =
|
||||
Postgres.run_ testEnv
|
||||
$ [i|
|
||||
CREATE FUNCTION #{ employee_yearly_salary schemaName }(employee_row employee)
|
||||
RETURNS integer AS $$
|
||||
RETURNS numeric AS $$
|
||||
SELECT employee_row.monthly_salary * 12
|
||||
$$ LANGUAGE sql STABLE;
|
||||
|],
|
||||
|
Loading…
Reference in New Issue
Block a user