|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-08 20:49 UTC] wseibert at hxcorp dot com
Description:
------------
Running a UPDATE sql command via PDO crashes Apache.
Reproduce code:
---------------
try
{
$dbh = new PDO('odbc:DSN=TEST;driver=Driver do Microsoft Access (*.mdb)','','');
$results = $dbh->query('UPDATE xd17 SET xd17.CCDate = 20051207, xd17.CCTime = 1200, xd17.ModifiedDS = 200512071200 WHERE xd17.XTyp17 = 157 AND xd17.X15A = 51921 AND xd157.X105B = 3300');
} catch (PDOException $e) {
print "Error!: ".$e->getMessage()."<br/>";
die();
}
Expected result:
----------------
Expected to see changes in DB.
Using exec ($dbh->exec(....) ) instead of query has no effect. Doesn't update the DB or crash anything.
SQL statement works find in MS Access.
Actual result:
--------------
Apache.exe - Application Error
The instruction at "0x7c5b97d4" referenced memory at "0x0000000c". The memory could no be "written".
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 15:00:02 2025 UTC |
<?php try { $dbh = new PDO('odbc:DSN=TEST;driver=Driver do Microsoft Access (*.mdb)','',''); $results = $dbh->query('UPDATE xd17 SET xd17.CCDate = 20051207, xd17.CCTime = 1200, xd17.ModifiedDS = 200512071200 WHERE xd17.XTyp17 = 157 AND xd17.X15A = 51921 AND xd157.X105B = 3300'); } catch (PDOException $e) { print "Error!: ".$e->getMessage()."<br/>"; die(); } ?>