• unknown's avatar
    A fix and test case for Bug#9777 " Empty set returned by Prepared Statement when it · 7d794dcc
    unknown authored
     should return a non empty one"
    (see comments for the changed files for details).
    
    
    mysql-test/r/ps.result:
      A test case for Bug#9777: tests results fixed.
    mysql-test/t/ps.test:
      A test case for Bug#9777
    sql/item.cc:
      A fix for Bug#9777: when creating a constant item from within 
      Item_int_with_ref::new_item, create the item by value, not by name.
      This should work with prepared statements placeholders.
      Item_int_with_ref is a special optimization case used
       when we compare datetime constants with datetime value.
      Converting the item to integer early is OK as it is in line
      with the purpose of Item_int_with_ref - to speed up comparison by 
      using integers.
      Minor cleanups.
    sql/item.h:
      Declaration for Item_int_with_ref::new_item
    7d794dcc
ps.result 17.2 KB