-
Notifications
You must be signed in to change notification settings - Fork 667
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
Creating a function with arguments creates arguments with double quotes #7222
Labels
Comments
Hello @JanSladky65, Please provide the Function DDL and the error screenshot. |
pravesh-sharma
added a commit
to pravesh-sharma/pgadmin4
that referenced
this issue
Mar 28, 2024
…le quotes if written in upper case. pgadmin-org#7222
pravesh-sharma
added a commit
to pravesh-sharma/pgadmin4
that referenced
this issue
Mar 28, 2024
…le quotes if written in upper case. pgadmin-org#7222
akshay-joshi
pushed a commit
that referenced
this issue
Apr 4, 2024
…le quotes if written in upper case. #7222
Working fine. |
pravesh-sharma
added a commit
to pravesh-sharma/pgadmin4
that referenced
this issue
Apr 16, 2024
… in double quotes if written in upper case. pgadmin-org#7222 " This reverts commit fc4b419.
This has been the by-design behaviour of pgAdmin. Using GUI intentionally handles quoting for the user. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When creating a function with the pgadmin function creation dialogue, arguments are created with double quotes in the function definition.
This happens when arguments are input without double quotes and in uppercase.
The effect of this is, that when you insert the code for the function and make use of arguments without double quotes the execution will fail saying "ERROR: column »status« doesn't exist"
Please note: the column is output in lowercase, even if it is written in uppercase.
This happens on Windows 10 pro and
pgadmin 4, 6.18 and pgadmin 8.x
To Reproduce
Steps to reproduce the behavior:
Right click on the created function and select 'Scripts' -> "CREATE script"
The shown script contains the input argument in double quotes: "STATUS"
Expected behavior
While creating a function and inputting an argument in uppercase pgadmin should not create arguments in double quotes.
Error message
FEHLER: Spalte »status« existiert nicht
LINE 1: SELECT STATUS+4
^
QUERY: SELECT STATUS+4
CONTEXT: PL/pgSQL-Funktion decode(integer) Zeile 2 bei RETURN
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: