summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-06-28 12:21:28 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-06-28 12:21:28 -0300
commite42d90850c6599a1ec5800cc251a345cc34b92b0 (patch)
tree3dd60cea96ac5885f0651a8e47675e55346ed5c2 /config
parent609e65ba54505531f228983912155de10750a3da (diff)
downloadmariadb-git-e42d90850c6599a1ec5800cc251a345cc34b92b0.tar.gz
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 data. 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/sql_prepare.cc: Before converting the parameter data stream, check the type compatibility. tests/mysql_client_test.c: Add test case.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions