Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename of functions with same name but different signatures #2171

Open
clrgit opened this issue Sep 16, 2024 · 1 comment
Open

Rename of functions with same name but different signatures #2171

clrgit opened this issue Sep 16, 2024 · 1 comment

Comments

@clrgit
Copy link

clrgit commented Sep 16, 2024

Summary

The @name smarttag doesn't seems to work when renaming functions with the same name but different signatures

Version 4.12.11

Steps to reproduce

The following code demonstrates the problem:

drop function if exists func(integer);
drop function if exists func(integer, integer);

create function func(i integer) returns integer as $$
  select i
$$ language sql;

create function func(i integer, j integer) returns integer as $$
  select i + j
$$ language sql;

comment on function func(integer) is E'@name func1';
comment on function func(integer, integer) is E'@name func2';

Expected results

When creating a new mutation, I would expect the renamed functions 'func1' and 'func2' to show up in GraphiQL

Actual results

Neither the renamed functions nor the original functions are available in GraphiQL

@benjie
Copy link
Member

benjie commented Sep 17, 2024

This seems to be an issue in V5 also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants