pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matteo Beccati <php@beccati.com>
To: Michael Lewis <mlewis@entrata.com>
Cc: Steve Atkins <steve@blighty.com>
Cc: PG mailing List <pgsql-general@lists.postgresql.org>
Subject: Re: Research on ?? operators
Date: Tue, 4 Jun 2019 14:40:25 +0200
Message-ID: <28cba2bf-c90b-33c2-6bd7-ff099d981aaf@beccati.com> (raw)
In-Reply-To: <CAHOFxGo88Ubed_DhJn4JcsL9FODx5q26O2gYo5PCcCEE1oRRmw@mail.gmail.com>
References: <4b588eb1-a3af-3e25-c1f1-16fb93e602e3@beccati.com>
	<D5829AF7-2F39-44E2-81C0-D2AE19BD7D02@blighty.com>
	<9e74ec66-8fbf-a2b1-dbde-c6808ded6a94@beccati.com>
	<CAHOFxGo88Ubed_DhJn4JcsL9FODx5q26O2gYo5PCcCEE1oRRmw@mail.gmail.com>

Hi Michael,

On 04/06/2019 14:35, Michael Lewis wrote:
> /":foo" named placeholders/
> 
> If I may, is this supported natively in Postgres prepared statements?
> Can I see an example? I do not care much for the numbers of positional
> placeholders and would love to use names instead if possible.

Not natively. In this case it's the PHP PDO pgsql driver that performs
the translation.

I suppose many other DB libraries do that in any programming language.


Cheers
-- 
Matteo Beccati

Development & Consulting - http://www.beccati.com/





view thread (8+ messages)  latest in thread

Message-ID: <28cba2bf-c90b-33c2-6bd7-ff099d981aaf@beccati.com>
Permalink:  ../28cba2bf-c90b-33c2-6bd7-ff099d981aaf@beccati.com/
Also on:    postgresql.org/message-id/28cba2bf-c90b-33c2-6bd7-ff099d981aaf@beccati.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: php@beccati.com, mlewis@entrata.com, steve@blighty.com
  Subject: Re: Research on ?? operators
  In-Reply-To: <28cba2bf-c90b-33c2-6bd7-ff099d981aaf@beccati.com>
  References: <4b588eb1-a3af-3e25-c1f1-16fb93e602e3@beccati.com> <D5829AF7-2F39-44E2-81C0-D2AE19BD7D02@blighty.com> <9e74ec66-8fbf-a2b1-dbde-c6808ded6a94@beccati.com> <CAHOFxGo88Ubed_DhJn4JcsL9FODx5q26O2gYo5PCcCEE1oRRmw@mail.gmail.com> <28cba2bf-c90b-33c2-6bd7-ff099d981aaf@beccati.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox