Re: [PHP-DEV] pdo: cannot send NULL values thru bound parameters.

2005-03-24 Thread Thies C . Arntzen
Am 24.03.2005 um 12:32 schrieb Jared Williams: $stmt = $this->prepareStatement('insert into bla (name) values (:name)'); $name = NULL; var_dump($name); // $name is NULL $stmt->bindParam(':name', $name); var_dump($name); // $name is an empty string am i overlooking something obvious? $stmt->bindPar

Re: [PHP-DEV] pdo: cannot send NULL values thru bound parameters.

2005-03-24 Thread Dan Scott
I have updated the PDOStatement::bindParam() documentation to include an explicit example of how to pass a NULL value. Thanks for the suggestion and question! Dan On Thu, 24 Mar 2005 13:33:13 +0100, Marcus Boerger <[EMAIL PROTECTED]> wrote: > Hello Thies, > > thanks & committed > > marcus >

Re: [PHP-DEV] pdo: cannot send NULL values thru bound parameters.

2005-03-24 Thread Marcus Boerger
Hello Thies, thanks & committed marcus Thursday, March 24, 2005, 12:42:42 PM, you wrote: > Am 24.03.2005 um 12:28 schrieb Marcus Boerger: >> Hello Thies, >> >> may i kindly ask you to provide a test case as a .inc file in >> pdo/tests. >> I'll then look into the details? >> > re, thies

Re: [PHP-DEV] pdo: cannot send NULL values thru bound parameters.

2005-03-24 Thread Marcus Boerger
Hello Thies, may i kindly ask you to provide a test case as a .inc file in pdo/tests. I'll then look into the details? Thursday, March 24, 2005, 12:19:02 PM, you wrote: > as we convert "incoming" zvals to strings in pdo_stmt.c "no matter what"... > $stmt = $this->prepareStatement('insert into

Re: [PHP-DEV] pdo: cannot send NULL values thru bound parameters.

2005-03-24 Thread Thies C . Arntzen
Am 24.03.2005 um 12:28 schrieb Marcus Boerger: Hello Thies, may i kindly ask you to provide a test case as a .inc file in pdo/tests. I'll then look into the details? re, thies -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] pdo: cannot send NULL values thru bound parameters.

2005-03-24 Thread Jared Williams
> $stmt = $this->prepareStatement('insert into bla (name) > values (:name)'); $name = NULL; var_dump($name); // $name is > NULL $stmt->bindParam(':name', $name); var_dump($name); // > $name is an empty string > > am i overlooking something obvious? $stmt->bindParam(':name', $name, PDO_PARAM_N

[PHP-DEV] pdo: cannot send NULL values thru bound parameters.

2005-03-24 Thread Thies C . Arntzen
as we convert "incoming" zvals to strings in pdo_stmt.c "no matter what"... $stmt = $this->prepareStatement('insert into bla (name) values (:name)'); $name = NULL; var_dump($name); // $name is NULL $stmt->bindParam(':name', $name); var_dump($name); // $name is an empty string am i overlooking somet