From: Ronald D. Willis <webmaster@rdwonline.com>
To: PostgreSQL PHP <pgsql-php@postgresql.org>
Subject: Re: Stored procedures, PDO, and PHP issue
Date: Tue, 08 Sep 2009 22:24:32 -0700
Message-ID: <4AA73C10.2080709@rdwonline.com> (raw)
Add this as a PDO option
array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)
I bet there's a PDOException being thrown and I would NOT be at all
surprised if it is a HY000 error where PDO is complaining about
unbuffered queries....
On 2009-08-19 20:47, Eric Chamberlain wrote:
> Wow, I apologize. The code is exactly like what yours is. In my rush
> I missed the correct code.
>
> Eric
>
> > >>> $stmt->bindParam(1, $userId, $hashPass, PDO::PARAM_INT);
> >
> >
> > You should be calling bindParam once for each parameter
> > $stmt->bindParam(1, $userId, PDO::PARAM_INT);
> > $stmt->bindParam(2, $hashPass, PDO::PARAM_STR);
> >
> >
> > Nick
> >
>
>
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-php@postgresql.org
Cc: webmaster@rdwonline.com
Subject: Re: Stored procedures, PDO, and PHP issue
In-Reply-To: <4AA73C10.2080709@rdwonline.com>
References: <4AA73C10.2080709@rdwonline.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