Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 98D801337999 for ; Wed, 29 Dec 2010 12:01:01 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 49152-02 for ; Wed, 29 Dec 2010 16:01:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id D701F133616B for ; Wed, 29 Dec 2010 12:01:00 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id oBTG0xAA053989 for ; Wed, 29 Dec 2010 16:00:59 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id oBTG0xcP053988; Wed, 29 Dec 2010 16:00:59 GMT (envelope-from www) Date: Wed, 29 Dec 2010 16:00:59 GMT Message-Id: <201012291600.oBTG0xcP053988@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5805: "not determine data type" for params in comments From: "Maxim Turchin" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201012/210 X-Sequence-Number: 29016 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;