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

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

Closed
FaharAbbasRizvi opened this issue Jun 22, 2023 · 1 comment

Comments

@FaharAbbasRizvi
Copy link
Contributor

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:

  1. create the following database
    CREATE DATABASE """"
    WITH
    OWNER = postgres
    ENCODING = 'UTF8'
    LC_COLLATE = 'C'
    LC_CTYPE = 'C'
    TABLESPACE = pg_default
    CONNECTION LIMIT = -1
    IS_TEMPLATE = False;
  2. create the following extension and function in the above database
    CREATE EXTENSION pldbgapi;

CREATE FUNCTION public.a_pgadmin4()
RETURNS "char"
LANGUAGE 'plpgsql'

AS $BODY$
begin
return 1;
end;
$BODY$;

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
image

Desktop (please complete the following information):

  • OS: [ALL]
  • Version: [7.3]
  • Mode: [e.g Desktop or Server]
  • Package type: [ALL]
@pravesh-sharma
Copy link
Contributor

Issue fixed. Verified on latest snapshot build

Env-
OS - macOS 13.6 (Ventura)
Mode - Desktop

@pravesh-sharma pravesh-sharma removed their assignment Sep 29, 2023
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

3 participants