- 06 Jun, 2011 1 commit
-
-
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.
-
- 26 May, 2011 2 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 22 May, 2011 1 commit
-
-
Sergei Golubchik authored
unix_timestamp() and time_to_sec() are hybrid items, returning integer or double depending on the argument.
-
- 21 May, 2011 1 commit
-
-
Sergei Golubchik authored
-
- 20 May, 2011 1 commit
-
-
Sergei Golubchik authored
-
- 19 May, 2011 4 commits
-
-
Sergei Golubchik authored
TIMESTAMP -> TIMESTAMP(6) TIME -> TIME(6) in general_log and slow_log tables. include/my_sys.h: use constants
-
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
-
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.
-
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.
-
- 19 Apr, 2011 1 commit
-
-
Vladislav Vaintroub authored
Prior to this patch it returned microseconds since 1 Jan 1601 (Windows epoch)
-
- 18 Apr, 2011 1 commit
-
-
Sergei Golubchik authored
implement Item_cache_int::getdate() and Item_cache_int::save_in_field() that handle the case of the cached packed datetime value.
-
- 03 Apr, 2011 1 commit
-
-
Sergei Golubchik authored
-
- 29 Mar, 2011 1 commit
-
-
Sergei Golubchik authored
rewrite get_innobase_type_from_mysql_type() to use types as reported by the Field objects, instead of relying on ad-hoc assumptions.
-
- 28 Mar, 2011 1 commit
-
-
Sergei Golubchik authored
certain values of X.
-
- 26 Mar, 2011 1 commit
-
-
Sergei Golubchik authored
-
- 24 Mar, 2011 3 commits
-
-
Sergei Golubchik authored
-
Vladislav Vaintroub authored
-
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
-
- 23 Mar, 2011 3 commits
-
-
Sergei Golubchik authored
fix a typo in the boundary test. simplify make_truncated_value_warning call.
-
Sergei Golubchik authored
fix a typo in the boundary test. simplify make_truncated_value_warning call.
-
Sergei Golubchik authored
-
- 19 Mar, 2011 3 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 18 Mar, 2011 6 commits
-
-
Sergei Golubchik authored
lp:737496 Assertion `(was_cut & 1) == 0' failed in Field_temporal::store_TIME_with_warning() in 5.1-micro fix incorrect assert
-
Sergei Golubchik authored
fix the return value of Item_func_coalesce::get_date()
-
Sergei Golubchik authored
implement Item_func_min_max::get_date()
-
Sergei Golubchik authored
better default for Field::cast_to_int_type()
-
Sergei Golubchik authored
-
Sergei Golubchik authored
respect fuzzydate flags in Item_*::get_date() methods
-
- 17 Mar, 2011 6 commits
-
-
Sergei Golubchik authored
and a different fix for lp:736370 cache temporal expression in Item_cache_int, not in Item_string. invoke get_datetime_value() to create a correct Item_cache_int. Implement Item_cache_int::clone, as it's a proper constant
-
Sergei Golubchik authored
Implement Item_func_coalesce::get_date()
-
Sergei Golubchik authored
lp:736370 Datetime functions in subquery context cause wrong result and bogus warnings in mysql-5.1-micro Don't cache temporal value in an Item_string, it is compared differently.
-
Sergei Golubchik authored
and a test case for lp:736370 Datetime functions in subquery context cause wrong result
-
Sergei Golubchik authored
Use dedicated do_field_temporal() for Copy_field. * check_time_range() needs to know TIME's precision to use the correct max value.
-
Sergei Golubchik authored
partial fix
-
- 09 Mar, 2011 2 commits
-
-
Sergei Golubchik authored
Two problems: * Item_func_convert_tz() did not tell args[0] that it needs TIME_NO_ZERO_IN_DATE result * Item_func_timediff did not respect fuzzy_date limitations, truncated seconds when casting to signed long, resulting in invalid time value (hours, seconds = (uint)-1).
-
Sergei Golubchik authored
add missing size_of() methods to new Field* classes
-
- 08 Mar, 2011 1 commit
-
-
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
-