From: hswong3i at gmail dot com Operating system: Debian PHP version: 5.2.6 PHP Bug Type: PDO related Bug description: pdo_pgsql always fill in NULL for empty BLOB
Description: ------------ When pdo_pgsql working with: 1. BLOB field, 2. running INSERT/UPDATE queries, and 3. BLOB value with empty string '' It will always fill NULL into database and so result as buggy. INSERT/UPDATE BLOB value with NULL will function correctly. P.S. pdo_mysql is NOT buggy when running with similar programming logic, empty string pass into database correctly. Tested with PHP5.2.6 and PHP5.3-dev, both are buggy. Reproduce code: --------------- Please refer to http://drupal.org/node/316095#comment-1047830 for more information. Expected result: ---------------- Empty string should fill into database correctly. Actual result: -------------- Empty string is now stored as NULL. -- Edit bug report at http://bugs.php.net/?id=46249&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46249&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46249&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46249&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46249&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46249&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46249&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46249&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46249&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46249&r=support Expected behavior: http://bugs.php.net/fix.php?id=46249&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46249&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46249&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46249&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46249&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46249&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46249&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46249&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46249&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46249&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46249&r=mysqlcfg
