• Davi Arnaut's avatar
    Bug#41465: confusing error message when comment is too long · 53802ae6
    Davi Arnaut authored
    The problem was that the server was trying to use the unknown
    error format string (ER_UNKNOWN_ERROR) to print messages about
    comments being too long, but the said format string does not
    accept arguments and will always default to "Unknown error".
    
    The solution is to introduce new error messages which are
    specific to the error conditions so that server wants to
    signal -- this also means that it's possible to translate
    those messages.
    
    mysql-test/r/strict.result:
      Update test case result.
    mysql-test/t/strict.test:
      Update test case with new errors.
    sql/share/errmsg.txt:
      Introduce new errors for long comments.
    sql/unireg.cc:
      Use new errors.
    53802ae6
errmsg.txt 405 KB