|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
2 + 15 = ?
Subscribe to this entry?

 [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-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 27 18:01:23 2020 UTC