• unknown's avatar
    Fixed bug #16069. · e536c8ec
    unknown authored
    The function agg_cmp_type in item_cmpfunc.cc neglected the fact that 
    the first argument in a BETWEEN/IN predicate could be a field of a view.
    As a result in the case when the retrieved table was hidden by a view 
    over it and the arguments in the BETWEEN/IN predicates are of 
    the date/time type the function did not perform conversion of 
    the constant arguments to the same format as the first field argument.
    If formats of the arguments differed it caused wrong a evaluation of
    the predicates.
    
    
    mysql-test/r/view.result:
      Added a test case for bug #16069.
    mysql-test/t/view.test:
      Added a test case for bug #16069.
    e536c8ec
view.result 77 KB