pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Escaping issues with queries using the `?` operator
2+ messages / 2 participants
[nested] [flat]

* Escaping issues with queries using the `?` operator
@ 2016-06-06 06:26 PSequel Support <support@psequel.com>
  2016-06-14 03:51 ` Re: Escaping issues with queries using the `?` operator Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  0 siblings, 1 reply; 2+ messages in thread

From: PSequel Support @ 2016-06-06 06:26 UTC (permalink / raw)
  To: pgsql-odbc

Given a query like this:

SELECT t.val
> FROM (VALUES ('{"a": 1}'::jsonb), ('{"b": 2}'::jsonb)) t (val)
> WHERE t.val ? 'b';


I get this error:

> > the # of binded parameters < the # of parameter markers

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Escaping issues with queries using the `?` operator
  2016-06-06 06:26 Escaping issues with queries using the `?` operator PSequel Support <support@psequel.com>
@ 2016-06-14 03:51 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  0 siblings, 0 replies; 2+ messages in thread

From: Inoue, Hiroshi @ 2016-06-14 03:51 UTC (permalink / raw)
  To: PSequel Support <support@psequel.com>; +Cc: pgsql-odbc

Hi,

On 2016/06/06 15:26, PSequel Support wrote:
> Given a query like this:
>
>     SELECT t.val
>     FROM (VALUES ('{"a": 1}'::jsonb), ('{"b": 2}'::jsonb)) t (val)
>     WHERE t.val ? 'b';
>
>
> I get this error:
>
>     > the # of binded parameters < the # of parameter markers
>

Hmm, ? as an operator. It conflicts with parameter place holder.
I can't think of the way to fix this issue at once.

regards,
Hiroshi Inoue

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-06-14 03:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-06 06:26 Escaping issues with queries using the `?` operator PSequel Support <support@psequel.com>
2016-06-14 03:51 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>

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