1. 22 Sep, 2007 1 commit
    • evgen@sunlight.local's avatar
      Bug#27216: functions with parameters of different date types may return wrong · 36bf417b
      evgen@sunlight.local authored
      type of the result.
      
      There are several functions that accept parameters of different types.
      The result field type of such functions was determined based on
      the aggregated result type of its arguments. As the DATE and the DATETIME
      types are represented by the STRING type, the result field type
      of the affected functions was always STRING for DATE/DATETIME arguments.
      The affected functions are COALESCE, IF, IFNULL, CASE, LEAST/GREATEST, CASE.
      
      Now the affected functions aggregate the field types of their arguments rather
      than their result types and return the result of aggregation as their result
      field type.
      The cached_field_type member variable is added to the number of classes to
      hold the aggregated result field type.
      The str_to_date() function's result field type now defaults to the
      MYSQL_TYPE_DATETIME.
      The agg_field_type() function is added. It aggregates field types with help
      of the Field::field_type_merge() function.
      The create_table_from_items() function now uses the 
      item->tmp_table_field_from_field_type() function to get the proper field
      when the item is a function with a STRING result type.
      36bf417b
  2. 19 Sep, 2007 1 commit
  3. 15 Sep, 2007 1 commit
  4. 14 Sep, 2007 10 commits
  5. 13 Sep, 2007 5 commits
  6. 12 Sep, 2007 6 commits
  7. 11 Sep, 2007 1 commit
  8. 10 Sep, 2007 3 commits
  9. 06 Sep, 2007 1 commit
  10. 04 Sep, 2007 2 commits
  11. 03 Sep, 2007 8 commits
  12. 31 Aug, 2007 1 commit