The message "Current database has been moved or renamed to ". Click on the OK button to refresh the database name." is displayed if the user tries to debug on the database containing single and double quotes #6482
Labels
Milestone
The message "Current database has been moved or renamed to ". Click on the OK button to refresh the database name." is displayed if the user tries to debug on the database containing single and double quotes. However, the user did not rename or moved such kind of database.
To Reproduce
Steps to reproduce the behavior:
CREATE DATABASE """"
WITH
OWNER = postgres
ENCODING = 'UTF8'
LC_COLLATE = 'C'
LC_CTYPE = 'C'
TABLESPACE = pg_default
CONNECTION LIMIT = -1
IS_TEMPLATE = False;
CREATE EXTENSION pldbgapi;
CREATE FUNCTION public.a_pgadmin4()
RETURNS "char"
LANGUAGE 'plpgsql'
AS$BODY$
$BODY$ ;
begin
return 1;
end;
ALTER FUNCTION public.a_pgadmin4()
OWNER TO postgres;
3. extension and function created
4. Go to the newly created function and Right Click on Debugging and Debug
5. Pop-up message displayed:(See the error)
6. Current database has been moved or renamed to ". Click on the OK button to refresh the database name.
Expected behavior
Debugger should be working fine without any unexpected message
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: