1. 06 Jun, 2011 1 commit
    • Sergei Golubchik's avatar
      revert a suggested "optimization" that introduced a bug · 4d128777
      Sergei Golubchik authored
      compilation error in mysys/my_getsystime.c fixed
      some redundant code removed
      sec_to_time, time_to_sec, from_unixtime, unix_timestamp, @@timestamp now
        use decimal, not double for numbers with a fractional part.
      purge_master_logs_before_date() fixed
      many bugs in corner cases fixed
      
      mysys/my_getsystime.c:
        compilation failure fixed
      sql/sql_parse.cc:
        don't cut corners. it backfires.
      4d128777
  2. 26 May, 2011 2 commits
  3. 22 May, 2011 1 commit
  4. 21 May, 2011 1 commit
  5. 20 May, 2011 1 commit
  6. 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
  7. 19 Apr, 2011 1 commit
  8. 18 Apr, 2011 1 commit
  9. 03 Apr, 2011 1 commit
  10. 29 Mar, 2011 1 commit
  11. 28 Mar, 2011 1 commit
  12. 26 Mar, 2011 1 commit
  13. 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
  14. 23 Mar, 2011 3 commits
  15. 19 Mar, 2011 3 commits
  16. 18 Mar, 2011 6 commits
  17. 17 Mar, 2011 6 commits
  18. 09 Mar, 2011 2 commits
  19. 08 Mar, 2011 1 commit