List:Commits« Previous MessageNext Message »
From:Tatjana Azundris Nurnberg Date:February 8 2008 1:35pm
Subject:Re: bk commit into 5.1 tree (tnurnberg:1.2654) BUG#32757
View as plain text  
Tatjana Azundris Nurnberg <azundris@stripped> writes:

>>> diff -Nrup a/sql/sql_plugin.cc b/sql/sql_plugin.cc
>>> --- a/sql/sql_plugin.cc	2007-12-13 12:49:55 +01:00
>>> +++ b/sql/sql_plugin.cc	2008-01-07 02:47:54 +01:00
>>> @@ -1916,16 +1928,28 @@ static int check_func_long(THD *thd, str
>>>    else
>>>      *(long *)save= (long) getopt_ll_limit_value(tmp, &options,
> &fixed);
>>>  
>>> -  if (fixed)
>>> +  if (*(long *)save != (long) tmp)
>>
>> why ?
>> in set_var.cc you use didn't change 'fixed' to 'save != tmp'.

  I checked with Antony and streamlined that whole section; both
  internal and plugin variables go through the same checks now,
  saved a couple of lines too (rather unsurprisingly :).

>> and server built-in variables still
>> auto-correct invalid values even in strict mode.
>>
>> Wouldn't you avoid code duplication if you add thsi check to
>> throw_bounds_warning() ? (and use it in sql_plugin.cc, of course)

  Done.

  Please re-review.

  thanks, and have a nice weekend,
  -T-



-- 
Tatjana A. Nurnberg, Bugs Bunny * MySQL AB, http://www.mysql.de/ * EST
IRC: Azundris * Skype: azundris * MySQL-SIP: 4550 * eMail: azundris@stripped
.de: Firmensitz: MySQL GmbH, Radlkoferstr. 2, D-81373 Muenchen
     Geschaeftsfuehrer: Hans von Bell, Kaj Arnoe - HRB Muenchen 162140
Thread
bk commit into 5.1 tree (tnurnberg:1.2654) BUG#32757Tatjana A Nuernberg7 Jan
  • Re: bk commit into 5.1 tree (tnurnberg:1.2654) BUG#32757Sergei Golubchik8 Jan
    • Re: bk commit into 5.1 tree (tnurnberg:1.2654) BUG#32757Tatjana Azundris Nurnberg9 Jan
      • Re: bk commit into 5.1 tree (tnurnberg:1.2654) BUG#32757Tatjana Azundris Nurnberg8 Feb