Bug #35857 CREATE PROCEDURE fails if in NO_ENGINE_SUBSTITUTION mode
Submitted: 6 Apr 2008 10:14 Modified: 6 Apr 2008 18:21
Reporter: deng jack Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Stored Routines Severity:S3 (Non-critical)
Version:6.0.4 OS:Windows (XP SP2)
Assigned to: CPU Architecture:Any

[6 Apr 2008 10:14] deng jack
Description:
    When I set a item of the section "mysqld" in the file named "my.ini" as follow:
           sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    next, I tried to create a stored procedure routine in the MySQL command shell as follow:
           create procedure `myproc1`() select * from mytable1;
    and then, MySQL reported an error as follow:
           ERROR 1655 (HY000): Cannot create stored routine `myproc1`. Check warnings
           Warning 1265: Data truncated for column 'sql_mode' at row 1
    
    After I removed the "sql-mode" item of the section "mysqld", and tried to create the same stored procedure routine again, I'd 

How to repeat:
First, set a item of the section "mysqld" in the file named "my.ini" as follow:
           sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

Next, try to create a stored procedure routine in the MySQL command shell as follow:
           create procedure `myproc1`() select * from mytable1;
[6 Apr 2008 18:21] Davi Arnaut
This bug is a duplicate of Bug#32633