Re: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query
От | Laurenz Albe |
---|---|
Тема | Re: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query |
Дата | |
Msg-id | 65eb4d7a46a2759dc2583f274bf50d16811caebe.camel@cybertec.at обсуждение исходный текст |
Ответ на | BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query (PG Bug reporting form <noreply@postgresql.org>) |
Ответы |
Ynt: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query
Ynt: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query Re: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query |
Список | pgsql-bugs |
On Tue, 2025-02-04 at 12:43 +0000, PG Bug reporting form wrote: > I have a set of "Functions" that I created dynamically with PLPgSQL and are > connected to each other in a chain. > > The first function dynamically creates the second function. The second > function returns a set of values with a dynamic "Return Query" statement and > a reference to "Returns Table (field1 type1, field2 type2 .... )". > > Basically, the result set seems to return exactly the desired result. The > exception is the varchar(n) fixed-length data type. Although the result set > is expected to be varchar(n) -a fixed-length value is expected-, a result of > type character varying (length indeterminate) is obtained. > > [...] > > As far as I have determined, the Postgresql database engine somehow returns > the varchar(n) - Fixed Length - data type as a "character varying" - > indefinite length data type. > > I hope this situation, which I observed as a problem, will be fixed as soon > as possible. That is working asdesigned. Why is it a problem for you? Yours, Laurenz Albe
В списке pgsql-bugs по дате отправления: