Re: Stored procedures, PDO, and PHP issue

Поиск
Список
Период
Сортировка
От Ronald D. Willis
Тема Re: Stored procedures, PDO, and PHP issue
Дата
Msg-id 4AA73C10.2080709@rdwonline.com
обсуждение исходный текст
Ответ на Stored procedures, PDO, and PHP issue  (Eric Chamberlain <Eric.Chamberlain@zonarsystems.com>)
Список pgsql-php
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
 > >
 >
 >

В списке pgsql-php по дате отправления:

Предыдущее
От: Arun Oakley
Дата:
Сообщение: pg_connect() error
Следующее
От: Chris
Дата:
Сообщение: Re: pg_connect() error