|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48426 PDO::exec() never modifies
Submitted: 2009-05-29 06:20 UTC Modified: 2009-05-29 07:02 UTC
From: jengert at gmail dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 5.2.9 OS: OS X 10.5
Private report: No CVE-ID: None
 [2009-05-29 06:20 UTC] jengert at gmail dot com
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:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-29 07:02 UTC] jengert at gmail dot com
permissions set wrong on file
I'm sorry for submitting this!
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 12:01:26 2023 UTC