|
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-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 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