Bug #61613 [Fbk->Opn]: No PDO error if first SQL statement of a group is valid.
From: trebitzki at gmx dot net Date: Wed, 11 Apr 2012 23:27:03 +0000 Subject: Bug #61613 [Fbk->Opn]: No PDO error if first SQL statement of a group is valid. References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-169458@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61613&edit=1
ID: 61613
User updated by: trebitzki at gmx dot net
Reported by: trebitzki at gmx dot net
Summary: No PDO error if first SQL statement of a group is
valid.
-Status: Feedback
+Status: Open
Type: Bug
Package: PDO related
Operating System: Mac OS X
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
I'm working on 1and1 server with PDO Driver for MySQL, client library version 5.1.49; locally
on Mac with PDO Driver for MySQL Client API version mysqlnd 5.0.7-dev - 091210 - $Revision: 304625
$. Both environments show this issue.
Previous Comments:
------------------------------------------------------------------------
[2012-04-11 15:08:20] johannes@php.net
Which PDO driver are you using?
------------------------------------------------------------------------
[2012-04-03 22:57:20] trebitzki at gmx dot net
Description:
------------
I am submitting a group of two SQL statements to PDO. The first is valid, the second has a syntax
error. PDO should throw an exception but doesn't. It only throws an exception when the first
statement is invalid.
Test script:
---------------
//[symfony 1.4 environment]
$conn = Propel::getConnection();
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo_statement = $conn->prepare('SELECT 1; invalidstatement');
$pdo_statement->execute();
Expected result:
----------------
I expect to have an error thrown since the group of statements has a syntax error.
Actual result:
--------------
No error is thrown.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61613&edit=1
Thread (26 messages)
- Bug #61613 [Opn->Fbk]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Fbk->Opn]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Asn]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Asn]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Asn->Nab]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Com]: No PDO error if first SQL statement of a group is valid.
- Bug #61613 [Nab]: No PDO error if first SQL statement of a group is valid.
| « previous | php.bugs (#169458) | next » |
|---|