hasura / hasura/graphql-engine
function definition tab shows incorrect code of sql function
Open
c/console
estimate/M
k/bug
p/longterm
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
in the hasura web console when you look at the SQL function in the modify tab "Function Definition" field I see that there are surplus of spaces in several places, so, when user copies this code it won't work. It's very minor bug, but still could take some time from user to figure out why proper working function isn't working anymore.
CREATE
OR REPLACE FUNCTION ... LANGUAGE sql STABLE AS $ function $
...
$ function $
"$ function $" instead of "$function$"
another wrong code generated I noted:
search < -> brandmodel AS dist
so "< ->" instead of "<->"
Contributor guide
Assessment
This issue has not been assessed yet.