Bug #58935 | ALTER DATABASE can be used in prepared statements | ||
---|---|---|---|
Submitted: | 15 Dec 2010 4:36 | Modified: | 16 Dec 2010 5:34 |
Reporter: | Filipus Klutiero | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[15 Dec 2010 4:36]
Filipus Klutiero
[15 Dec 2010 5:01]
Valeriy Kravchuk
This is what I see in 5.1.54: macbook-pro:5.1 openxs$ bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 32 Server version: 5.1.54-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> prepare stmt1 from 'alter database test character set utf8'; ERROR 1295 (HY000): This command is not supported in the prepared statement protocol yet So, please, check with recent released version, 5.1.53, and if ALTER DATABASE still works the way you describe there, please, send complete test case.
[16 Dec 2010 5:34]
Filipus Klutiero
I'm sorry Valeriy, a prepared ALTER DATABASE does not work here neither. I was trying through PDO (PHP), which apparently uses ATTR_EMULATE_PREPARES by default, meaning prepared statements are emulated... Thank you for your quick reply. FWIW, I was using PHP 5.3.3.