Re: PATCH: Encoding issue with qtLiteral function (pgAdmin4)

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: PATCH: Encoding issue with qtLiteral function (pgAdmin4)
Дата
Msg-id CA+OCxozkMUiTbd5yNNibmm4YBB2Zsyv=594EXj+NUMFgvvX4TQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PATCH: Encoding issue with qtLiteral function (pgAdmin4)  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
Список pgadmin-hackers
On Mon, Aug 1, 2016 at 2:33 PM, Murtuza Zabuawala
<murtuza.zabuawala@enterprisedb.com> wrote:
> Hi Dave,
>
> We have to added it because postgres format_type() function do not provide
> us type with 'public' schema prefix to it, due to which wrong SQL's are
> getting generated.
> Rest other types are pre fixed with their respective schema as required.

OK, so:

                # If schema is not pg_catalog & then add schema
                if row['nspname'] == 'public':
                    rtn_type = row['nspname'] + "." + row['typname']
                else:
                    rtn_type = row['typname']

?

!= pg_catalog is redundant with == public.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Murtuza Zabuawala
Дата:
Сообщение: Re: PATCH: Encoding issue with qtLiteral function (pgAdmin4)
Следующее
От: Dave Page
Дата:
Сообщение: pgAdmin 4 commit: Use the same keyboard shortcuts in the query tool as