|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-02-03 10:21 UTC] mbeccati@php.net
-Status: Open
+Status: Not a bug
[2015-02-03 10:21 UTC] mbeccati@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Mar 01 16:00:01 2026 UTC |
Description: ------------ I have the following problem with binding params in pdo for sql requests Test script: --------------- $timezone = 'Asia/Jakarta'; $statement = $pdo->prepare('SET TIME ZONE :timezone'); $statement->execute([':timezone'=>$timezone]); Actual result: -------------- PDOException SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "$1" LINE 1: SET TIME ZONE $1