#48426 [NEW]: PDO::exec() never modifies
| From: | jengert at gmail dot com | Date: | Fri, 29 May 2009 06:20:38 +0000 |
| Subject: | #48426 [NEW]: PDO::exec() never modifies | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-137859@lists.php.net to get a copy of this message | ||
From: jengert at gmail dot com
Operating system: OS X 10.5
PHP version: 5.2.9
PHP Bug Type: Apache2 related
Bug description: PDO::exec() never modifies
Description:
------------
my table looks like this
CREATE TABLE
volunteer (
volunteer_id integer PRIMARY KEY,
origin_id int(10) NOT NULL,
name varchar(200) NOT NULL,
UNIQUE (name)
);
Works via command line, not through apache (with and w/o entropy)
Reproduce code:
---------------
$db = new PDO('sqlite:mealdata.sqlite');
$querystring = "INSERT INTO volunteer (origin_id , name)
VALUES (3,
'my name')";
$query = $db->exec($querystring);
echo $query;
Expected result:
----------------
1
Actual result:
--------------
0
--
Edit bug report at http://bugs.php.net/?id=48426&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48426&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48426&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48426&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48426&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48426&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48426&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48426&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48426&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48426&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48426&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48426&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48426&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48426&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48426&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48426&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48426&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48426&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48426&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48426&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48426&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48426&r=mysqlcfg