Advertisement: Over 100,000 Jobs Worldwide. Click here to find one for you.

MySQL FAQs
FAQs Categories
Client Server Commands
Database Structure
Table Types or Storage Engines
Indexes
SQL Statements
Table Joins
Funtions and Operators
Tricky Select Queries
Speed Up Queries
Data Back Up
General Questions
Errors
Send This Page to Friend
Enter Friend's Email
Enter Your Email
http://www.kareerlinks.com/jobs/skill/MySQL
 
Home / Errors / Question No: 30

ERROR 1295 (HY000): This command is not supported in the prepared statement protocol yet

Does MySQL support dropping and creating functions and procedures in functions? I want to search stored procedures with prepare statement in MySQL-5.0. It seems that can not use 'drop procedure xxx' in prepare statement , like this:

mysql> create procedure drpsp()
-> begin
-> prepare aa from 'drop procedure ct_tb';
-> execute aa;
-> end
-> //
Query OK, 0 rows affected (0.00 sec)

mysql> call drpsp//
ERROR 1295 (HY000): This command is not supported in the prepared statement protocol yet

mysql> drop procedure ct_tb//
Query OK, 0 rows affected (0.00 sec)

the same, "drop function/trigger xxx" is also not supported in prepare statment. Is it a lack of feature in MySQL-5.0 version?

Answer No: 30

Exactly. MySQL doesn't support dropping and creating functions and procedures or triggers in functions or triggers.

Comments
Add Comments
Found a bug? Or do you have a better solution for this? Feel free to leave a message:
Leave a comment
Your Name: Your Email Address (optional):
Comment:


Related MySQL FAQs to the Above FAQ

Why-I-see-an-error-when-I-EXPLAIN-for-update-query Why I see an error when I EXPLAIN for update query?

ERROR-1064-(42000):-You-have-an-error-in-your-SQL-syntax ERROR 1064 (42000): You have an error in your SQL syntax

1264-Out-of-range-value-adjusted-for-column 1264 Out of range value adjusted for column

1048-Column-cannot-be-null 1048 Column cannot be null

1093-You-can-not-specify-target-table-comments-for-update-in-FROM-clause 1093 You can not specify target table comments for update in FROM clause

1191-Cant-find-FULLTEXT-index-matching-the-column-list 1191-Cant find FULLTEXT index matching the column list