Monty
4da2b83af7
Fixed compiler error and some warnings on windows
2016-08-23 15:03:31 +03: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
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
ce84ba2f81
MDEV-6287 Bad warning level when inserting a DATETIME value into a TIME column
2014-06-02 12:33:17 +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
d28d3ba40d
10.0-base merge
2013-12-16 13:02:21 +01:00
Sergei Golubchik
6bf10fac44
5.5 merge
2013-12-15 15:57:26 +01:00
Alexander Barkov
b97b9536c7
MDEV-4857 Wrong result of HOUR('1 00:00:00')
...
modified:
mysql-test/r/func_time.result
mysql-test/t/func_time.test
sql-common/my_time.c
sql/item_func.h
sql/item_timefunc.cc
sql/mysql_priv.h
sql/time.cc
2013-12-02 15:09:34 +04:00
Alexander Barkov
5a8bd446ad
Merge 5.3->5.5
...
pending merges:
Alexander Barkov 2013-12-02 MDEV-4857 Wrong result of HOUR('1 00:00:00')
2013-12-02 15:50:35 +04:00
Alexander Barkov
e9ca686137
MDEV-4871 Temporal literals do not accept nanoseconds
2013-08-15 15:24:34 +04:00
Sergei Golubchik
b7b5f6f1ab
10.0-monty merge
...
includes:
* remove some remnants of "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING"
* introduce LOCK_share, now LOCK_ha_data is strictly for engines
* rea_create_table() always creates .par file (even in "frm-only" mode)
* fix a 5.6 bug, temp file leak on dummy ALTER TABLE
2013-07-21 16:39:19 +02:00
Sergei Golubchik
5f6380adde
10.0-base merge
2013-07-18 16:46:57 +02:00
Sergei Golubchik
97e640b9ae
5.5 merge
2013-07-17 21:24:29 +02:00
Alexander Barkov
a057b50490
Merging temporal literals
...
added:
mysql-test/r/temporal_literal.result
mysql-test/t/temporal_literal.test
modified:
client/mysqlbinlog.cc
include/my_time.h
mysql-test/r/cast.result
mysql-test/r/partition_innodb.result
mysql-test/t/cast.test
mysql-test/t/partition_innodb.test
sql-common/my_time.c
sql/field.cc
sql/item.cc
sql/item.h
sql/item_cmpfunc.cc
sql/item_create.cc
sql/item_create.h
sql/item_strfunc.cc
sql/item_timefunc.cc
sql/item_timefunc.h
sql/sql_select.cc
sql/sql_time.cc
sql/sql_time.h
sql/sql_yacc.yy
storage/spider/spd_db_mysql.cc
pending merges:
Alexander Barkov 2013-07-10 Adding support for the SQL-standard temporal...
2013-07-10 18:46:33 +04:00
Alexander Barkov
d98584f56a
Adding support for the SQL-standard temporal literals.
...
added:
mysql-test/r/temporal_literal.result
mysql-test/t/temporal_literal.test
modified:
client/mysqlbinlog.cc
include/my_time.h
mysql-test/r/cast.result
mysql-test/r/partition_innodb.result
mysql-test/t/cast.test
mysql-test/t/partition_innodb.test
sql-common/my_time.c
sql/field.cc
sql/item.cc
sql/item.h
sql/item_cmpfunc.cc
sql/item_create.cc
sql/item_create.h
sql/item_strfunc.cc
sql/item_timefunc.cc
sql/item_timefunc.h
sql/sql_select.cc
sql/sql_time.cc
sql/sql_time.h
sql/sql_yacc.yy
storage/spider/spd_db_mysql.cc
2013-07-10 12:12:27 +04:00
Alexander Barkov
5b0774ee1c
Adding support for MySQL-5.6 temporal column types:
...
TIME, DATETIME, TIMESTAMP
added:
mysql-test/r/type_temporal_mysql56.result
mysql-test/std_data/mysql56datetime.MYD
mysql-test/std_data/mysql56datetime.MYI
mysql-test/std_data/mysql56datetime.frm
mysql-test/std_data/mysql56time.MYD
mysql-test/std_data/mysql56time.MYI
mysql-test/std_data/mysql56time.frm
mysql-test/std_data/mysql56timestamp.MYD
mysql-test/std_data/mysql56timestamp.MYI
mysql-test/std_data/mysql56timestamp.frm
mysql-test/suite/rpl/r/rpl_temporal_mysql56.result
mysql-test/suite/rpl/t/rpl_temporal_mysql56.test
mysql-test/t/type_temporal_mysql56.test
sql/compat56.cc
sql/compat56.h
modified:
client/mysqlbinlog.cc
include/my_time.h
include/mysql.h.pp
include/mysql_com.h
mysql-test/r/statistics.result
mysql-test/r/strict.result
mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result
mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result
sql-common/my_time.c
sql/CMakeLists.txt
sql/field.cc
sql/field.h
sql/item.cc
sql/item_strfunc.cc
sql/item_sum.cc
sql/item_timefunc.cc
sql/log_event.cc
sql/opt_range.cc
sql/opt_table_elimination.cc
sql/protocol.cc
sql/rpl_utility.cc
sql/rpl_utility.h
sql/sql_partition.cc
sql/sql_prepare.cc
sql/sql_select.cc
sql/sql_table.cc
sql/table.cc
storage/perfschema/pfs_engine_table.cc
2013-07-10 11:49:17 +04:00
Alexander Barkov
1f3ec9800c
Merging from 5.3
...
modified:
include/my_time.h
libmysql/libmysql.c
mysql-test/r/adddate_454.result
mysql-test/r/cast.result
mysql-test/r/date_formats.result
mysql-test/r/func_sapdb.result
mysql-test/r/func_time.result
mysql-test/r/mdev316.result
mysql-test/r/parser.result
mysql-test/r/partition_datatype.result
mysql-test/r/partition_pruning.result
mysql-test/r/type_date.result
mysql-test/r/type_datetime.result
mysql-test/suite/vcol/r/vcol_misc.result
mysql-test/t/cast.test
sql-common/my_time.c
sql/field.cc
sql/field_conv.cc
sql/filesort.cc
sql/item.cc
sql/item.h
sql/item_cmpfunc.cc
sql/item_func.cc
sql/item_strfunc.cc
sql/item_timefunc.cc
sql/sql_time.cc
pending merges:
Sergei Golubchik 2013-07-03 MDEV-4667 DATE('string') incompability betwe...
2013-07-08 16:49:42 +04:00
Sergei Golubchik
78cc6db44a
MDEV-4667 DATE('string') incompability between mysql and mariadb
...
Cleanup: remove TIME_FUZZY_DATE.
Introduce TIME_FUZZY_DATES which means "very fuzzy, the resulting
value is only used for comparison. It can be invalid date, fine, as long as it can be
compared".
Updated many tests results (they're better now).
2013-07-03 09:46:20 +02:00
Sergei Golubchik
4ec6fe10e5
remove ULL() and LL(), because they're totally unnecessary
...
and sometimes harmful (used with expressions)
2013-04-07 14:00:16 +02:00
Michael Widenius
068c61978e
Temporary commit of 10.0-merge
2013-03-26 00:03:13 +02:00
Sergei Golubchik
c562c74478
MDEV-457 Inconsistent data truncation on datetime values with fractional seconds represented as strings with no delimiters
...
New implementation for str_to_datetime. Fix MDEV-457 and related issues.
2012-09-08 12:15:55 +02:00
Vladislav Vaintroub
b14d3adad9
merge
2012-06-13 11:37:51 +02:00
Vladislav Vaintroub
afe1ef5e3a
LP1008334 : Speedup specific datetime queries that got slower with introduction of microseconds in 5.3
...
- Item::get_seconds() now skips decimal arithmetic, if decimals is 0. This significantly speeds up from_unixtime() if no fractional part is passed.
- replace sprintfs used to format temporal values by hand-coded formatting
Query1 (original query in the bug report)
BENCHMARK(10000000,DATE_SUB(FROM_UNIXTIME(RAND() * 2147483648), INTERVAL (FLOOR(1 + RAND() * 365)) DAY))
Query2 (Variation of query1 that does not use fractional part in FROM_UNIXTIME parameter)
BENCHMARK(10000000,DATE_SUB(FROM_UNIXTIME(FLOOR(RAND() * 2147483648)), INTERVAL (FLOOR(1 + RAND() * 365)) DAY))
Prior to the patch, the runtimes were (32 bit compilation/AMD machine)
Query1: 41.53 sec
Query2: 23.90 sec
With the patch, the runtimes are
Query1: 32.32 sec (speed up due to removing sprintf)
Query2: 12.06 sec (speed up due to skipping decimal arithmetic)
2012-06-08 19:15:01 +02:00
Sergei Golubchik
a3073ecd96
merge
2012-04-05 23:07:18 +02:00
Sergei Golubchik
dea3544b2d
mysql-5.1.62 merge
2012-04-05 10:49:38 +02:00
Sergei Golubchik
20e706689d
mysql-5.5.22 merge
...
mysql-test/suite/innodb/t/group_commit_crash.test:
remove autoincrement to avoid rbr being used for insert ... select
mysql-test/suite/innodb/t/group_commit_crash_no_optimize_thread.test:
remove autoincrement to avoid rbr being used for insert ... select
mysys/my_addr_resolve.c:
a pointer to a buffer is returned to the caller -> the buffer cannot be on the stack
mysys/stacktrace.c:
my_vsnprintf() is ok here, in 5.5
2012-03-28 01:04:46 +02:00
Sergei Golubchik
4933d21e5d
merge with mysql-5.5.21
2012-03-09 08:06:59 +01:00
MySQL Build Team
7a35cb9150
Updated/added copyright headers
2012-02-16 10:48:16 +01:00
Kent Boortz
6a003dd8ef
Updated/added copyright headers
2012-02-15 17:21:38 +01:00
Alexander Barkov
c0badf88c6
Merging BUG#13458237 from 5.1.
2012-01-24 13:24:05 +04:00
Alexander Barkov
f8e924b467
BUG#13458237 - INCONSISTENT HANDLING OF INVALIDE DATES WITH ZERO DAY. SIMILAR TO '2009-10-00'
...
- Reverting the patch for Bug # 12584302
The patch will be reverted in 5.1 and 5.5.
The patch will not be reverted in 5.6, the change will
be properly documented in 5.6.
- Backporting DBUG_ASSERT not to crash on '0000-01-00'
(already fixed in mysql-trunk (5.6))
2012-01-24 13:00:13 +04:00
Sergei Golubchik
4f435bddfd
5.3 merge
2012-01-13 15:50:02 +01:00
Michael Widenius
6d4224a31c
Merge with 5.2.
...
no_error handling for select (used by INSERT ... SELECT) still needs to be fixed, but I will do that in a separate commit
2011-12-11 11:34:44 +02:00
Sergei Golubchik
d2755a2c9c
5.3->5.5 merge
2011-11-22 18:04:38 +01:00
Michael Widenius
a8d03ab235
Initail merge with MySQL 5.1 (XtraDB still needs to be merged)
...
Fixed up copyright messages.
2011-11-21 19:13:14 +02:00
Sergei Golubchik
557f0d3ad0
5.2->5.3 merge
2011-11-12 18:08:12 +01:00
Sergei Golubchik
04f3ecf632
typos fixed
...
(thanks viva64.com)
2011-11-08 23:07:19 +01:00
Sergei Golubchik
6edd76785c
merge
2011-11-03 23:39:53 +01:00
Sergei Golubchik
0e007344ea
mysql-5.5.18 merge
2011-11-03 19:17:05 +01:00
Sergei Golubchik
90b43902b0
compilation warnings on Windows
2011-11-02 12:55:46 +01:00
Sergei Golubchik
76f0b94bb0
merge with 5.3
...
sql/sql_insert.cc:
CREATE ... IF NOT EXISTS may do nothing, but
it is still not a failure. don't forget to my_ok it.
******
CREATE ... IF NOT EXISTS may do nothing, but
it is still not a failure. don't forget to my_ok it.
sql/sql_table.cc:
small cleanup
******
small cleanup
2011-10-19 21:45:18 +02:00
Kent Boortz
027b5f1ed4
Updated/added copyright headers
2011-07-03 17:47:37 +02:00
Sergei Golubchik
b4a0b2c2f8
post-merge fixes.
...
most tests pass.
5.3 merge is next
2011-07-02 22:12:12 +02:00
Sergei Golubchik
9809f05199
5.5-merge
2011-07-02 22:08:51 +02:00
Kent Boortz
68f00a5686
Updated/added copyright headers
2011-06-30 17:37:13 +02:00
Kent Boortz
44135d4725
Updated/added copyright headers
2011-06-30 17:31:31 +02:00
Sergei Golubchik
f1a5c49c4e
various fixes for buildbot failures
2011-06-10 15:42:55 +02:00
Sergei Golubchik
9b98cae4cc
merge with 5.1-micro
2011-06-07 18:13:02 +02:00