pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maxim Turchin <nehxby@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5805: "not determine data type" for params in comments
Date: Wed, 29 Dec 2010 16:00:59 GMT
Message-ID: <201012291600.oBTG0xcP053988@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      5805
Logged by:          Maxim Turchin
Email address:      nehxby@gmail.com
PostgreSQL version: 8.4
Operating system:   Ubuntu Linux
Description:        "not determine data type" for params in comments
Details: 

I use php PDO extention. If in prepared statement exists comments with
string like ":somestring", this string is parameter, and need to fill.

Example SQL:
select
  /* :some_old_param, */
  :someparam1,
  :someparam2
from sometable;

When i fill last 2 param, and not fill first old param (in comment!), i get
error "not determine data type of parameter $1".

postgresql log:

2010-12-29 17:43:10 EET ERROR:  could not determine data type of parameter
$1
2010-12-29 17:43:10 EET STATEMENT: select
  /* $1, */
  $2,
  $3
from sometable;



view thread (2+ messages)  latest in thread

Message-ID: <201012291600.oBTG0xcP053988@wwwmaster.postgresql.org>
Permalink:  ../201012291600.oBTG0xcP053988@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201012291600.oBTG0xcP053988@wwwmaster.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: nehxby@gmail.com
  Subject: Re: BUG #5805: "not determine data type" for params in comments
  In-Reply-To: <201012291600.oBTG0xcP053988@wwwmaster.postgresql.org>
  References: <201012291600.oBTG0xcP053988@wwwmaster.postgresql.org>

* 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