Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCfOl-0002LV-Ds for pgsql-odbc@arkaria.postgresql.org; Tue, 14 Jun 2016 03:52:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCfOk-0005sL-Q3 for pgsql-odbc@arkaria.postgresql.org; Tue, 14 Jun 2016 03:52:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCfOO-0005Tg-ER for pgsql-odbc@postgresql.org; Tue, 14 Jun 2016 03:51:56 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCfOL-0003PQ-Dk for pgsql-odbc@postgresql.org; Tue, 14 Jun 2016 03:51:55 +0000 Received: from [192.168.1.4] (p213158-ipngn200204fukui.fukui.ocn.ne.jp [114.173.46.158]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 1A8E418F2E; Tue, 14 Jun 2016 12:51:46 +0900 (JST) Subject: Re: Escaping issues with queries using the `?` operator To: PSequel Support References: Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <575F7F54.8060407@dream.email.ne.jp> Date: Tue, 14 Jun 2016 12:51:48 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------050401050302090603010800" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------050401050302090603010800 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------050401050302090603010800 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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
--------------050401050302090603010800--