|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-05 10:56 UTC] tony2001@php.net
[2007-06-05 11:03 UTC] develar at gmail dot com
[2007-06-05 11:29 UTC] tony2001@php.net
[2007-06-05 15:20 UTC] develar at gmail dot com
[2007-06-05 15:40 UTC] tony2001@php.net
[2007-06-05 17:00 UTC] develar at gmail dot com
[2007-06-05 22:56 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
Description: ------------ 'delete from users."users where id = :id' is wrong, must be 'delete from users."users" where id = :id', but why pdo crash. Reproduce code: --------------- <?php $Db = new PDO('pgsql:host=192.168.0.66;dbname=test', 'postgres', 'password'); $Db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); $Db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); $Pdo = $Db->prepare('delete from users."users where id = :id'); $Pdo->bindValue(':id', 45, PDO::PARAM_INT); $Pdo->execute(); ?> Expected result: ---------------- not crash Actual result: -------------- crash