Bug #16314 [Asn->Bgs]: Turning empty columns incorrectly to NULL

From: Date: Wed, 24 Oct 2012 14:54:01 +0000
Subject: Bug #16314 [Asn->Bgs]: Turning empty columns incorrectly to NULL
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9217@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=16314&edit=1 ID: 16314 Updated by: danielc@analysisandsolutions.com Reported By: jan at horde dot org Summary: Turning empty columns incorrectly to NULL -Status: Assigned +Status: Bogus Type: Bug Package: MDB2 Package Version: 2.5.0b2 PHP Version: Irrelevant -Assigned To: quipo +Assigned To: danielc Roadmap Versions: New Comment: -Status: Assigned +Status: Bogus -Assigned To: quipo +Assigned To: danielc In SVN commit r328129, I added a testBug16314() method in tests/Standard/BugsTest.php. The test passes (I used mysql, mysqli, and pgsql) when running the against the beta release that came out yesterday (2.5.0b4). Marking this "bogus" so it doesn't show up as fixed when generating the next release. Previous Comments: ------------------------------------------------------------------------ [2011-09-29 10:13:20] doconnor -Status: Feedback +Status: Open ------------------------------------------------------------------------ [2009-06-20 18:59:27] yunosh I can reproduce this on two different servers with different MDB2 versions, different MySQL versions, different distributions: openSUSE 11.0 MySQL 5.0.51a MDB2 2.5.0b2 beta MDB2_Driver_mysql 1.5.0b1 beta Ubuntu 9.04 MySQL 5.0.75 MDB2 2.4.1 stable MDB2_Driver_mysql 1.4.1 stable ------------------------------------------------------------------------ [2009-06-20 18:33:43] quipo -Status: Open +Status: Feedback -Assigned To: +Assigned To: quipo I tried your example, an empty string is inserted. Can you double-check the example above? If you still experience the issue, please provide some info about your setup. ------------------------------------------------------------------------ [2009-06-16 16:50:47] yunosh CREATE TABLE test ( id varchar(255) NOT NULL, PRIMARY KEY (id) ) require_once 'MDB2.php'; $db = MDB2::factory('mysql://horde:pass@localhost/horde'); $db->setOption('field_case', CASE_LOWER); $db->setOption('portability', MDB2_PORTABILITY_FIX_CASE | MDB2_PORTABILITY_ERRORS | MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES); $stmt = $db->prepare('INSERT INTO test (id) VALUES (?)', null, MDB2_PREPARE_MANIP); var_dump($stmt->execute(array(''))); ------------------------------------------------------------------------ [2009-06-16 13:22:08] cweiske Can you give us some example code? I know that it worked for me 2 weeks ago. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=16314 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=16314&edit=1

« previous php.pear.bugs (#9217) next »