1. 26 May, 2011 2 commits
  2. 22 May, 2011 1 commit
  3. 21 May, 2011 1 commit
  4. 20 May, 2011 1 commit
  5. 19 May, 2011 4 commits
    • Sergei Golubchik's avatar
      microseconds in log tables: · 8767540a
      Sergei Golubchik authored
        TIMESTAMP -> TIMESTAMP(6)
        TIME -> TIME(6)
      in general_log and slow_log tables.
      
      include/my_sys.h:
        use constants
      8767540a
    • Sergei Golubchik's avatar
      post review changes 2 · f06cac33
      Sergei Golubchik authored
      sql/event_parse_data.cc:
        don't use "not_used" variable
      sql/item_timefunc.cc:
        Item_temporal_func::fix_length_and_dec()
        and other changes
      sql/item_timefunc.h:
        introducing Item_timefunc::fix_length_and_dec()
      sql/share/errmsg.txt:
        don't say "column X" in the error message that used not only for columns
      f06cac33
    • Sergei Golubchik's avatar
      many changes to my_getsystime.c: · 03b33425
      Sergei Golubchik authored
      * my_getsystime() is only an interval timer. Its value can beused for calculating
        time intervals.
      * renamed my_getsystime() to my_interval_timer(), to make the semantics
        clearer and let the compiler catch wrong usages of my_getsystime()
        (also future ones, that may come in merges).
      * increased its granularity from 100ns to 1ns, old value was for UUID,
        but as UUID can no longer use it directly there is no need to downgrade
        the OS provided value
      * fixed the UUID code to anchor the my_interval_timer() on the epoch, as
        required by the UUID standard. That is, this was only needed by UUID,
        and now I've moved it to UUID code from my_getsystime().
      * fixed other wrong usages of my_getsystime() - e.g. in calculating
        times for pthread_cond_timedwait. It was buggy and could've caused
        long waits if OS clock would be changed.
      03b33425
    • Sergei Golubchik's avatar
      post-review changes 1 · 8ddcd0cd
      Sergei Golubchik authored
      include/my_time.h:
        remove duplicate defines.
        cast to ulonglong to avoid overflow
      sql/field.cc:
        perform sign extension when reading packed TIME values
      sql/item_cmpfunc.cc:
        when converting a string to a date for the purpose of comparing it with another date,
        we should ignore strict sql mode.
      sql/item_timefunc.cc:
        better error message
      sql/item_timefunc.h:
        limit decimals appropriately
      sql/share/errmsg.txt:
        don't refer to an object as a "column" in error messages that are used not only for columns.
      8ddcd0cd
  6. 19 Apr, 2011 1 commit
  7. 18 Apr, 2011 1 commit
  8. 03 Apr, 2011 1 commit
  9. 29 Mar, 2011 1 commit
  10. 28 Mar, 2011 1 commit
  11. 26 Mar, 2011 1 commit
  12. 24 Mar, 2011 3 commits
    • Sergei Golubchik's avatar
      fixes for funcs_1 suite · c41b66c0
      Sergei Golubchik authored
      c41b66c0
    • Vladislav Vaintroub's avatar
      merge · e06f8fbb
      Vladislav Vaintroub authored
      e06f8fbb
    • Vladislav Vaintroub's avatar
      Fix compilation on Windows: · 8250cece
      Vladislav Vaintroub authored
      - Fixes for type-conversion
        (time_t   is not interchangeable  with  my_time_t on Windows as time_t s 64 bit while my_time_t is long)
      - BIGENDIAN-> ARCH_BIGENDIAN . 
        BIGENDIAN constant  is defined in winsock2.h (as 0)
      - added explicit cast for longlong->double conversion in sql/item.h  (fixed many warnings) 
      
      Also, HAVE_SNPRINTF is now defined and snprintf is defined to _snprintf in config-win.h
      8250cece
  13. 23 Mar, 2011 3 commits
  14. 19 Mar, 2011 3 commits
  15. 18 Mar, 2011 6 commits
  16. 17 Mar, 2011 6 commits
  17. 09 Mar, 2011 2 commits
  18. 08 Mar, 2011 2 commits
    • Sergei Golubchik's avatar
      lp:731229 Different results depending on table access method with TIME column and CURDATE() · 743b6f86
      Sergei Golubchik authored
      issue a warning when a datetime is truncated for storing in a TIME column.
      this automatically prevents optimizer from using indexes when comparing time column to a datetime
      743b6f86
    • Sergei Golubchik's avatar
      lp:731124 Loss of precision on DISTINCT · 8b7fd8f5
      Sergei Golubchik authored
      many changes:
      * NOT_FIXED_DEC now create hires fields, not old ones.
        As a result, temp tables preserve microseconds (on DISTINCT, GROUP BY)
      * I_S tables force decimals=0 on temporal types (backward compatibility)
      * Item_func_coalesce calculates decimals for temporal types
      * no precision for TIME/DATETIME in CAST means 0, not NOT_FIXED_DEC
      * addtime/timediff calculate decimals from arguments (not NOT_FIXED_DEC)
      
      sql/field.h:
        NOT_FIXED_DEC now create hires fields, not old ones
      sql/item.h:
        force decimals=0 for I_S tables
      sql/item_cmpfunc.cc:
        Item_func_coalesce calculates decimals for temporal types
      sql/item_create.cc:
        no precision for TIME/DATETIME in CAST means 0, not NOT_FIXED_DEC
      sql/item_timefunc.cc:
        addtime calculates decimals from arguments (not NOT_FIXED_DEC)
      sql/item_timefunc.h:
        timediff calculates decimals from arguments (not NOT_FIXED_DEC)
      8b7fd8f5