Re: Research on ?? operators

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Research on ?? operators
Дата
Msg-id 3C01A915-4C26-4803-81BD-2F68B304019F@blighty.com
обсуждение исходный текст
Ответ на Re: Research on ?? operators  (Michael Lewis <mlewis@entrata.com>)
Список pgsql-general

> On Jun 4, 2019, at 1:35 PM, Michael Lewis <mlewis@entrata.com> wrote:
>
> ":foo" named placeholders
>
> If I may, is this supported natively in Postgres prepared statements?

It's not. The only type we support are numbered $1 type placeholders.

> Can I see an example? I do not care much for the numbers of positional placeholders and would love to use names
insteadif possible. 

It'd be nice. They're supported via rewriting at the driver level in some drivers, and I've written shims to convert
themin an app a few times and it makes for much more readable - and bug-resistant - code. 

Supporting it at the protocol level would be very nice.

Cheers,
  Steve


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

Предыдущее
От: Matteo Beccati
Дата:
Сообщение: Re: Research on ?? operators
Следующее
От: Jeremy Finzel
Дата:
Сообщение: Re: Questions about btree_gin vs btree_gist for low cardinality columns