hasura / hasura/graphql-engine

function definition tab shows incorrect code of sql function

Open
#8,488 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.