Skip to content

Commit

Permalink
Bug#54041: MySQL 5.0.92 fails when tests from Connector/C suite run
Browse files Browse the repository at this point in the history
Fix a regression (due to a typo) which caused spurious incorrect
argument errors for long data stream parameters if all forms of
logging were disabled (binary, general and slow logs).
  • Loading branch information
Davi Arnaut committed Jul 30, 2010
1 parent f07f225 commit 6d60052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/sql_prepare.cc
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ static bool insert_params_withlog(Prepared_statement *stmt, uchar *null_array,
type (the types are supplied at execute). Check that the
supplied type of placeholder can accept a data stream.
*/
else if (!is_param_long_data_type(param))
else if (! is_param_long_data_type(param))
DBUG_RETURN(1);
res= param->query_val_str(&str);
if (param->convert_str_value(thd))
Expand Down Expand Up @@ -801,7 +801,7 @@ static bool insert_params(Prepared_statement *stmt, uchar *null_array,
type (the types are supplied at execute). Check that the
supplied type of placeholder can accept a data stream.
*/
else if (is_param_long_data_type(param))
else if (! is_param_long_data_type(param))
DBUG_RETURN(1);
if (param->convert_str_value(stmt->thd))
DBUG_RETURN(1); /* out of memory */
Expand Down

0 comments on commit 6d60052

Please sign in to comment.