Sergei Golubchik
5ae8fce50b
Merge branch '10.1' into 10.2
2018-09-24 11:46:08 +02:00
Sergei Golubchik
1fc5a6f30c
Merge branch '10.0' into 10.1
2018-09-23 12:58:11 +02:00
Alexander Barkov
80bcb05b24
Merge remote-tracking branch 'origin/5.5' into 10.0
2018-09-21 08:37:42 +04:00
Alexander Barkov
935a163dd9
MDEV-17244 MAKETIME(900,0,0.111) returns a wrong result
2018-09-20 16:51:56 +04:00
Alexander Barkov
0c6455aa46
MDEV-17249 MAKETIME(-1e50,0,0) returns a wrong result
2018-09-20 16:02:58 +04:00
Marko Mäkelä
9258097fa3
Merge 10.1 into 10.2
2018-08-21 15:20:34 +03:00
Oleksandr Byelkin
b4210f3640
Merge branch '10.0' into 10.1
2018-08-21 10:07:26 +02:00
Oleksandr Byelkin
bcc677bb72
Merge branch '5.5' into 10.0
2018-08-15 16:48:13 +02:00
Sergei Golubchik
3ff0801c73
MDEV-16810 AddressSanitizer: stack-buffer-overflow in int10_to_str
...
truncate incorrect values in convert_period_to_month() so that
PERIOD_DIFF never returns a value outside of 2^23 range.
And, for safety, increase buffer sizes for int10_to_str
to be sufficienly big for any int10_to_str result.
2018-08-11 12:19:46 +02:00
Vicențiu Ciorbaru
98eb9518db
Merge remote-tracking branch 'origin/10.1' into 10.2
2018-03-16 14:12:00 +02:00
Vicențiu Ciorbaru
8152c52e1a
Merge remote-tracking branch '10.0' into 10.1
2018-03-15 03:45:28 +02:00
Alexander Barkov
48c11d407b
MDEV-13202 Assertion `ltime->neg == 0' failed in date_to_datetime
2018-03-13 12:42:41 +04:00
Sergei Golubchik
e0a1c745ec
Merge branch '10.1' into 10.2
2017-10-24 14:53:18 +02:00
Sergei Golubchik
9d2e2d7533
Merge branch '10.0' into 10.1
2017-10-22 13:03:41 +02:00
Sergei Golubchik
da4503e956
Merge branch '5.5' into 10.0
2017-10-18 15:14:39 +02:00
Alexander Barkov
c2509a1588
MDEV-13972 crash in Item_func_sec_to_time::get_date
2017-10-10 10:35:12 +04:00
Alexander Barkov
e30b6a983f
MDEV-11819 NO_ZERO_IN_DATE: Incorrect generated column value
2017-10-06 18:23:40 +04:00
Sergei Golubchik
f3914d10b6
Merge branch 'bb-10.2-serg-merge' into 10.2
2017-02-11 09:45:34 +01:00
Nirbhay Choubey
8b2e642aa2
MDEV-7635: Update tests to adapt to the new default sql_mode
2017-02-10 06:30:42 -05:00
Vicențiu Ciorbaru
8e15768731
Merge branch '10.0' into 10.1
2017-01-16 03:18:14 +02:00
vicentiu
e9aed131ea
Merge remote-tracking branch 'origin/5.5' into 10.0
2017-01-06 17:09:59 +02:00
Alexander Barkov
2f6fede8d5
MDEV-10524 Assertion `arg1_int >= 0' failed in Item_func_additive_op::result_precision()
...
This change is a backport from 10.0 to 5.5 for:
1. The full patch for:
MDEV-4841 Wrong character set of ADDTIME() and DATE_ADD()
9adb6e991e
2. A small fragment of:
MDEV-5298 Illegal mix of collations on timestamp
03f6778d61
which overrides Item_temporal_hybrid_func::cmp_type(),
and adds a new line into cache_temporal_4265.result.
2016-12-19 14:28:08 +04:00
Sergei Golubchik
2f20d297f8
Merge branch '10.0' into 10.1
2016-12-11 09:53:42 +01:00
Alexander Barkov
c32d3e16f3
MDEV-10787 Assertion `ltime->neg == 0' failed in void date_to_datetime(MYSQL_TIME*)
2016-12-07 18:05:13 +04:00
Alexander Barkov
1ec91803ac
MDEV-10317 EXCTACT(MINUTE_MICROSECOND) truncates data
2016-07-03 13:52:06 +04:00
Sergei Golubchik
a5679af1b1
Merge branch '10.0' into 10.1
2016-02-23 21:35:05 +01:00
Sergei Golubchik
271fed4106
Merge branch '5.5' into 10.0
2016-02-15 22:50:59 +01:00
Sergei Golubchik
f3444df415
Merge branch 'mysql/5.5' into 5.5
...
reverted about half of commits as either not applicable or
outright wrong
2016-02-09 11:27:40 +01:00
Sreeharsha Ramanavarapu
cb15cce746
Bug #21564557 : INCONSISTENT OUTPUT FROM 5.5 AND 5.6
...
UNIX_TIMESTAMP(STR_TO_DATE('201506', "%Y%M"
Issue:
-----
When an invalid date is supplied to the UNIX_TIMESTAMP
function from STR_TO_DATE, no check is performed before
converting it to a timestamp value.
SOLUTION:
---------
Add the check_date function and only if it succeeds,
proceed to the timestamp conversion.
No warning will be returned for dates having zero in
month/date, since partial dates are allowed. UNIX_TIMESTAMP
will return only a zero for such values.
The problem has been handled in 5.6+ with WL#946.
2015-12-31 07:31:12 +05:30
Alexander Barkov
accf9b5675
MDEV-5694 GREATEST(date, time) returns a wrong data type
2015-10-01 20:01:35 +04:00
Alexander Barkov
3cc6e5b7f2
MDEV-8852 Implicit or explicit CAST from MAX(string) to INT,DOUBLE,DECIMAL does not produce warnings
2015-09-28 12:51:02 +04:00
Alexander Barkov
43e4522672
MDEV-8205 timediff returns null when comparing decimal time to time string value
2015-06-15 11:04:06 +04:00
Sergei Golubchik
d9c01e4b4a
5.5 merge
2015-01-21 12:03:02 +01:00
Alexander Barkov
357cb12d87
DEV-7221 from_days fails after null value
2014-12-16 15:33:13 +04:00
Sergei Golubchik
4b4de01fae
5.3 merge
2014-08-01 16:51:12 +02:00
Sergei Golubchik
681fbcaf92
fix func_time.test to be independent from the system time zone
2014-08-01 12:04:55 +02:00
Alexander Barkov
5b452ae027
MDEV-4511 Assertion `scale <= precision' fails on GROUP BY TIMEDIFF with incorrect types
...
MDEV-6302 Wrong result set when using GROUP BY FROM_UNIXTIME(...)+0
Fixed.
2014-07-28 13:47:55 +04:00
Alexander Barkov
07cb53c58b
Merge 5.3->5.5
2014-07-23 14:59:23 +04:00
Alexander Barkov
80708da138
MDEV-5750 Assertion `ltime->year == 0' fails on a query with EXTRACT DAY_MINUTE and TIME column
...
Item_func_min_max::get_date() did not clear ltime->year when returning a TIME value.
2014-07-23 13:38:48 +04:00
Sergei Golubchik
6fb17a0601
5.5.39 merge
2014-08-07 18:06:56 +02:00
Alexander Barkov
216fbe2af3
MDEV-6102 Comparison between TIME and DATETIME does not use CURRENT_DATE
...
MDEV-6101 Hybrid functions do not add CURRENT_DATE when converting TIME to DATETIME
2014-06-06 10:29:52 +04:00
Sergei Golubchik
e27c338634
5.5.38 merge
2014-06-06 00:07:27 +02:00
Alexander Barkov
284479c085
Merge 5.3->5.5
2014-06-04 21:53:15 +04:00
Alexander Barkov
661daf16f1
MDEV-4858 Wrong results for a huge unsigned value inserted into a TIME column
...
MDEV-6099 Bad results for DATE_ADD(.., INTERVAL 2000000000000000000.0 SECOND)
MDEV-6097 Inconsistent results for CAST(int,decimal,double AS DATETIME)
MDEV-6100 No warning on CAST(9000000 AS TIME)
2014-06-04 20:32:57 +04:00
Alexander Barkov
d3d3a4b834
MDEV-4511 Assertion `scale <= precision' fails on GROUP BY TIMEDIFF with incorrect types
2014-04-24 16:59:01 +04:00
Alexander Barkov
e0f75b1bff
MDEV-5870 Assertion `ltime->neg == 0' fails with COALESCE, ADDDATE, MAKEDATE
...
A huge number in the "day" part of an interval made the code to return
a negative date erroneously. Adding a test to return an error on a too
large "day" value.
2014-03-23 14:22:44 +04:00
Alexander Barkov
89e1715355
MDEV-5372 Make "CAST(time_expr AS DATETIME)" compatible with MySQL-5.6 (and the SQL Standard)
2014-03-07 00:21:25 +04:00
Sergei Golubchik
5475cc7765
merge
2014-02-04 10:49:44 +01:00
Alexander Barkov
1563999018
MDEV-5450 Assertion `cached_field_ type == MYSQL_TYPE_STRING ||
...
ltime.time_type == MYSQL_TIMESTAMP_NONE ||
mysql_type_to_time_type(cached_field_type) == ltime.time_type'
fails with IF, ISNULL, ADDDATE
2014-02-03 23:29:22 +04:00
Sergei Golubchik
72c20282db
10.0-base merge
2014-02-03 15:22:39 +01:00