• unknown's avatar
    A fix and a test case for Bug#11299 "prepared statement makes wrong SQL · cb7a5b53
    unknown authored
     syntax in binlog which stops replication":
    disallow the use of parameter markers which can lead to generation
    of malformed binlog queries. 
    
    
    mysql-test/r/ps.result:
      Test results fixed: a test case for Bug#11299
    mysql-test/t/ps.test:
      A test case for Bug#11299
    sql/sql_lex.cc:
      Introduce a new parser token for a parameter marker. Make sure
      that a parameter marker can not be used in a query which, when
      transformed to a binlog query, becomes grammatically incorrect.
    sql/sql_yacc.yy:
      The check for COM_PREPARE has been moved into the lexer.
    mysql-test/var:
      New BitKeeper file ``mysql-test/var''
    cb7a5b53
ps.test 19.1 KB