• unknown's avatar
    Fix for bug#20701 BINARY keyword should be forbidden in stored routines · 0231ca09
    unknown authored
        
    create function func() returns char(10) binary ...
    is no more possible. This will be reenabled when 
    bug 2676 "DECLARE can't have COLLATE clause in stored procedure"
    is fixed.
    
    Fix after 2nd review
    
    
    mysql-test/r/sp-error.result:
      update result
    mysql-test/r/sp.result:
      update result
    mysql-test/t/sp-error.test:
      add a test case for bug#20701 BINARY keyword should be forbidden in stored procedures
    mysql-test/t/sp.test:
      Fix test case which uses binary for the return value of a function.
      It's no more possible after fix for bug#20701 
      BINARY keyword should be forbidden in SP
      
      Fix few glitches where ; is used instead of | . The delimiter is |
    sql/sql_yacc.yy:
      Fix for bug#20701 BINARY keyword should be forbidden in stored routines
      
      create function func() returns char(10) binary ...
      is no more possible. This will be reenabled when 
      bug 2676 "DECLARE can't have COLLATE clause in stored procedure"
      is fixed
    0231ca09
sp-error.test 39.2 KB