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:
Daniel Harvey 2023-07-26 15:43:29 +01:00 committed by hasura-bot
parent 929773d5b4
commit 88a2bf1b7d

View File

@ -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;
|],