summaryrefslogtreecommitdiff
path: root/mysql-test/main/type_year.test
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.3' into 10.4bb-10.4-MDEV-23468Oleksandr Byelkin2020-12-251-15/+23
|\
| * Merge branch '10.2' into 10.3Oleksandr Byelkin2020-12-231-15/+23
| |
* | MDEV-23337 Rounding functions create a wrong data type for integer inputAlexander Barkov2020-07-311-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. Fixing ROUND(x) and TRUNCATE(x,0) with TINYINT, SMALLINT, MEDIUMINT, BIGINT input to preserve the exact data type of the argument when it's possible. 2. Fixing FLOOR(x) and CEILING(x) with TINYINT, SMALLINT, MEDIUMINT, BIGINT to preserve the exact data type of the argument. 3. Adding dedicated Type_handler_year::Item_func_round_fix_length_and_dec() to easier handle ROUND(x) and TRUNCATE(x,y) for the YEAR(2) and YEAR(4) input. They still return INT(2) UNSIGNED and INT(4) UNSIGNED correspondingly, as before.
* | Merge 10.3 into 10.4Marko Mäkelä2019-03-201-0/+11
|\ \ | |/ | | | | | | | | | | | | | | | | The MDEV-17262 commit 26432e49d37a37d09b862bb49a021e44bdf4789c was skipped. In Galera 4, the implementation would seem to require changes to the streaming replication. In the tests archive.rnd_pos main.profiling, disable_ps_protocol for SHOW STATUS and SHOW PROFILE commands until MDEV-18974 has been fixed.
| * Merge branch '10.2' into 10.3Sergei Golubchik2019-03-171-0/+11
| |
* | Merge 10.3 into 10.4Marko Mäkelä2018-11-061-1/+8
|\ \ | |/
| * Merge 10.2 into 10.3Marko Mäkelä2018-11-061-1/+8
| | | | | | | | | | | | | | | | | | main.derived_cond_pushdown: Move all 10.3 tests to the end, trim trailing white space, and add an "End of 10.3 tests" marker. Add --sorted_result to tests where the ordering is not deterministic. main.win_percentile: Add --sorted_result to tests where the ordering is no longer deterministic.
* | MDEV-17607 DATE(COALESCE(year_column)) returns a wrong resultAlexander Barkov2018-11-041-0/+9
| | | | | | | | | | | | | | | | | | | | C++ does not guarantee the order of parameter evaluation. It was wrong to pass item->val_int() and item->null_value at the same time to any function or constructor. Adding a new helper class Longlong_null, and new methods Item::to_longlong_null() and Item_func_hybrid_field_type::to_longlong_null_op(), which make sure to properly call val_int()/int_op() and test null_value. Reorganizing the rest of the code accordingly.
* | MDEV-17015 Assertion `m_year <= 9999' failed in Year::Year upon bad argument ↵Alexander Barkov2018-08-181-0/+4
| | | | | | | | to MAKEDATE
* | MDEV-16926 CAST(COALESCE(year_field)) returns wrong valueAlexander Barkov2018-08-091-0/+17
| |
* | MDEV-16451 Split Item_equal::add_const() into a virtual method in type_handler()Alexander Barkov2018-06-091-0/+27
|/ | | | MDEV-16452 Split TIME and DATETIME handling in Item_func_between, in_temporal, cmp_item_internal
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+256