Require suggestion for issue #8007 - Mailing list pgadmin-hackers

From Pravesh Sharma
Subject Require suggestion for issue #8007
Date
Msg-id CA+36bxGWg9GD=4LY_tv82YVy=X+DMLts+DXK=JsWcLdxVtiNiQ@mail.gmail.com
Whole thread Raw
Responses Re: Require suggestion for issue #8007
List pgadmin-hackers

Hi Hackers,

We have been working on issue #8007. After our analysis, we found that the length and scale of the argument's data type are not stored in the database server, making it difficult to fetch. In the debugger, pgAdmin typecasts the provided value to its data type when calling the function, which is causing the issue.

If we typecast the value to a character without specifying the length, it is treated as a character (1) (character of length 1). For example, the output of SELECT 'pgadmin', 'pgadmin'::character; is different.

There are two solutions we can consider:

  1. Do not typecast if the data type is character.
  2. Typecast to varchar when the data type is character.
Please provide your suggestions which solution looks good to you.

Thanks,
Pravesh
--


Pravesh Sharma

Software Engineer

+91 9406461406


enterprisedb.com

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: French translation for pgadmin
Next
From: Dave Page
Date:
Subject: Re: Require suggestion for issue #8007