summaryrefslogtreecommitdiff
path: root/mysql-test/main/type_timestamp.test
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-20417 Assertion `(m_ptr == __null) == item->null_value' failed in ↵Alexander Barkov2019-08-261-0/+18
| | | | VDec::VDec(Item*)
* MDEV-18503 Assertion `native.length() == binlen' failed in ↵Alexander Barkov2019-04-021-0/+12
| | | | Type_handler_timestamp_common::make_sort_key
* Tests for MDEV-18595 Assertion `0' failed in ↵Alexander Barkov2019-04-021-0/+10
| | | | | | Item_cache_timestamp::val_datetime_packed / Predicant_to_list_comparator::cmp_arg The patch for MDEV-18240 fixed this problem earlier. Adding tests only.
* MDEV-18240 Assertion `0' failed in Item_cache_timestamp::val_datetime_packedAlexander Barkov2019-04-021-0/+14
|
* MDEV-19124 Assertion `0' failed in Item::val_nativeAlexander Barkov2019-04-021-0/+15
|
* MDEV-17969 Assertion `name' failed in ↵Alexander Barkov2019-03-291-0/+13
| | | | THD::push_warning_truncated_value_for_field
* Merge branch '10.4' into bb-10.4-mdev16188Igor Babaev2019-02-141-0/+8
|\
| * MDEV-18447 Assertion `!is_zero_datetime()' failed in ↵Alexander Barkov2019-02-121-0/+8
| | | | | | | | Timestamp_or_zero_datetime::tv
* | Merge branch '10.4' into bb-10.4-mdev16188Igor Babaev2019-02-031-0/+136
|\ \ | |/
| * MDEV-18145 Assertion `0' failed in Item::val_native upon SELECT subquery ↵Alexander Barkov2019-01-141-0/+11
| | | | | | | | with timestamp
| * MDEV-18072 Assertion `is_null() == item->null_value || conv' failed in ↵Alexander Barkov2018-12-251-0/+10
| | | | | | | | Timestamp_or_zero_datetime_native_null::Timestamp_or_zero_datetime_native_null upon query with GROUP BY
| * MDEV-17968 Error 174 "Fatal error during initialization of handler" from ↵Alexander Barkov2018-12-121-0/+22
| | | | | | | | storage engine Aria upon DELETE from partitioned table
| * --echo #Alexander Barkov2018-12-121-0/+8
| | | | | | | | | | --echo # MDEV-17979 Assertion `0' failed in Item::val_native upon SELECT with timestamp, NULLIF, GROUP BY --echo #
| * MDEV-13995 MAX(timestamp) returns a wrong result near DST changeAlexander Barkov2018-12-101-0/+50
| |
| * MDEV-17928 Conversion from TIMESTAMP to VARCHAR SP variables does not work ↵Alexander Barkov2018-12-081-0/+35
| | | | | | | | well on fractional digits
* | MDEV-16188 Use in-memory PK filters built from range index scansIgor Babaev2019-02-031-0/+4
|/ | | | | | | | | | | | | | | | | | | | | | This patch contains a full implementation of the optimization that allows to use in-memory rowid / primary filters built for range   conditions over indexes. In many cases usage of such filters reduce   the number of disk seeks spent for fetching table rows. In this implementation the choice of what possible filter to be applied   (if any) is made purely on cost-based considerations. This implementation re-achitectured the partial implementation of the feature pushed by Galina Shalygina in the commit 8d5a11122c32f4d9eb87536886c6e893377bdd07. Besides this patch contains a better implementation of the generic   handler function handler::multi_range_read_info_const() that takes into account gaps between ranges when calculating the cost of range index scans. It also contains some corrections of the implementation of the handler function records_in_range() for MyISAM. This patch supports the feature for InnoDB and MyISAM.
* MDEV-17216 Assertion `!dt->fraction_remainder(decimals())' failed in ↵Alexander Barkov2018-10-091-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Field_temporal_with_date::store_TIME_with_warning The problem happened because {{Field_xxx::store(longlong nr, bool unsigned_val)}} erroneously passed {{unsigned_flag}} to the {{usec}} parameter of this constructor: {code:cpp} Datetime(int *warn, longlong sec, ulong usec, date_conv_mode_t flags) {code} 1. Changing Time and Datetime constructors to accept data as Sec6 rather than as longlong/double/my_decimal, so it's not possible to do such mistakes in the future. Additional good effect of these changes: - This reduced some amount of similar code (minus ~35 lines). - The code now does not rely on the fact that "unsigned_flag" is not important inside Datetime(). The constructor always gets all three parts: sign, integer part, fractional part. The simple the better. 2. Fixing Field_xxx::store() to use the new Datetime constructor format. This change actually fixes the problem. 3. Adding "explicit" keyword to all Sec6 constructors, to avoid automatic hidden conversion from double/my_decimal to Sec6, as well as from longlong/ulonglong through double to Sec6. 4. Change#1 caused (as a dependency) changes in a few places with code like this: bool neg= nr < 0 && !unsigned_val; ulonglong value= m_neg ? (ulonglong) -nr : (ulonglong) nr; These fragments relied on a non-standard behavior with the operator "minus" applied to the lowest possible negative signed long long value. This can lead to different results depending on the platform and compilation flags. We have fixed such bugs a few times already. So instead of modifying the old wrong code to a new wrong code, replacing all such fragments to use Longlong_hybrid, which correctly handles this special case with -LONGLONG_MIN in its method abs(). This also reduced the amount of similar code (1 or 2 new lines instead 3 old lines in all 6 such fragments). 5. Removing ErrConvInteger(longlong nr, bool unsigned_flag= false) and adding ErrConvInteger(Longlong_hybrid) instead, to encourage use of safe Longlong_hybrid instead of unsafe pairs nr+neg. 6. Removing unused ErrConvInteger from Item_cache_temporal::get_date()
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+608