|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-14 23:11 UTC] sean at caedmon dot net
[2005-02-15 00:40 UTC] wez@php.net
[2005-02-21 11:10 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 22:00:01 2025 UTC |
Description: ------------ (from CVS, ~15:00EDT, 2005.02.14) When connecting to MySQL 3.23 (constructor), I get: SQLSTATE[HY000] [1064] You have an error in your SQL syntax near 'AUTOCOMMIT=1' at line 1 When I exception->getMessage() MySQL version: 3.23.49-log S Reproduce code: --------------- try { $PDO = new PDO('mysql:dbname=php_commits;host=localhost', 'phpcommits', 'asdu34'); } catch (PDOException $e) { echo 'Connection failed: ' . $e->getMessage(); } Expected result: ---------------- no failure Actual result: -------------- SQLSTATE[HY000] [1064] You have an error in your SQL syntax near 'AUTOCOMMIT=1' at line 1