From: remery at seminolesheriff dot org Operating system: Linux PHP version: 5.1.6 PHP Bug Type: PDO related Bug description: PDO DBLIB driver does not support transactions
Description: ------------ I'm connecting from a Linux/Apache/PHP server to a Microsoft SQL Server 2000 database using PDO with the DBLIB driver. Attempting to use transactions produces the exception 'This driver doesn't support transactions'. Reproduce code: --------------- $dsn = 'dblib:host=' . $server . ';dbname=' . $dbName; $user = 'tempUser'; $pwd = 'tmpPwd'; $table = 'sqlTable'; $column = 'colName'; $value = 'value'; $sql = 'Insert Into ' . $dbName; $sql .= ' (' . $column . ')'; $sql .= ' Values ' . $value; $conn = new PDO($dsn, $user, $pwd); $conn->beginTransaction(); $conn->exec($sql); $conn->commit(); Expected result: ---------------- The value should be inserted into the table. Actual result: -------------- Fatal error: Uncaught exception 'PDOException' with message 'This driver doesn't support transactions' in /var/www/html/business/entity.php:37 Stack trace: #0 /var/www/html/business/entity.php(37): PDO->beginTransaction() #1 {main} thrown in /var/www/html/business/entity.php on line 37 -- Edit bug report at http://bugs.php.net/?id=38955&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38955&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38955&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38955&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38955&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38955&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38955&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38955&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38955&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38955&r=support Expected behavior: http://bugs.php.net/fix.php?id=38955&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38955&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38955&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38955&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38955&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38955&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38955&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38955&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38955&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38955&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38955&r=mysqlcfg