|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57292 LOCK TABLES -> 'SQLSTATE[HY000]: General error: 2030'
Submitted: 2006-10-12 11:05 UTC Modified: 2008-05-08 11:01 UTC
From: fog at gmx dot de Assigned:
Status: Not a bug Package: PDO_MYSQL (PECL)
PHP Version: 5.1.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: fog at gmx dot de
New email:
PHP Version: OS:


 [2006-10-12 11:05 UTC] fog at gmx dot de
The use of LOCK TABLES tablename WRITE causes an error on Linux servers while it runs perfect on windows machines. A PHP Script using LOCK TABLES would fail under Linux if used with PDO.

On the Linux Server the pdo_mysql Version is:
PDO Driver for MySQL, client library version 5.0.18 

Actual result:
Error Message without stack trace:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2030 This command is not supported in the prepared statement protocol yet' in /home/gforge/ 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-08 11:01 UTC] johannes at schlueters dot de
No PDO_mysql issue, emulation is used by default.
 [2011-09-09 19:09 UTC] aa at ff dot com
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 03:03:34 2021 UTC