• unknown's avatar
    Bug#2703 · bef510dd
    unknown authored
    "MySQL server does not detect if garbage chara at the end of query"
    
    Allow the parser to see the garbage characters.
    Garbage should cause the parser to report an error.
    
    
    sql/sql_lex.cc:
      Return END_OF_INPUT when at the end of the input buffer.
      Allows the parser to determine if there is junk after a \0 character.
    sql/sql_parse.cc:
      Undo 1.314.1.1 04/02/11 12:32:42 guilhem@mysql.com
    sql/sql_prepare.cc:
      Undo 1.73 04/02/11 12:32:42 guilhem@mysql.com
    bef510dd
sql_lex.cc 40.4 KB