List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:July 2 2010 11:22am
Subject:bzr push into mysql-5.0-bugteam branch (Georgi.Kodinov:2876 to 2877)
View as plain text  
 2877 Georgi Kodinov	2010-07-02 [merge]

 2876 Davi Arnaut	2010-06-28
      Bug#54041: MySQL 5.0.92 fails when tests from Connector/C suite run
      The problem was that a user could supply supply data in chunks
      via the COM_STMT_SEND_LONG_DATA command to prepared statement
      parameter other than of type TEXT or BLOB. This posed a problem
      since other parameter types aren't setup to handle long data,
      which would lead to a crash when attempting to use the supplied
      Given that long data can be supplied at any stage of a prepared
      statement, coupled with the fact that the type of a parameter
      marker might change between consecutive executions, the solution
      is to validate at execution time each parameter marker for which
      a data stream was provided. If the parameter type is not TEXT or
      BLOB (that is, if the type is not able to handle a data stream),
      a error is returned.
     @ sql/
        Before converting the parameter data stream, check the type
     @ tests/mysql_client_test.c
        Add test case.


Attachment: [text/bzr-bundle] bzr/
bzr push into mysql-5.0-bugteam branch (Georgi.Kodinov:2876 to 2877) Georgi Kodinov2 Jul