• unknown's avatar
    Added check for selects without into in SPs, and updated error messages and tests · 34266291
    unknown authored
    accordingly.
    
    
    include/mysqld_error.h:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/czech/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/danish/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/dutch/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/english/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/estonian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/french/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/german/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/greek/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/hungarian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/italian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/japanese/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/korean/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/norwegian-ny/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/norwegian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/polish/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/portuguese/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/romanian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/russian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/serbian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/slovak/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/spanish/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/swedish/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    sql/share/ukrainian/errmsg.txt:
      Added bad select in SP error (and fixed leave/iterate label mismatch error).
    mysql-test/r/sp.result:
      New test for repeat(...) and select with and without into in SPs.
    mysql-test/t/sp.test:
      New test for repeat(...) and select with and without into in SPs.
    sql/sql_yacc.yy:
      Check if an SP substatement is a SELECT and if so, has an INTO. If not, it's an
      error.
    34266291
mysqld_error.h 9.45 KB