Sergey Petrunya
68015a99cd
Change the order of parameters in DECODE_HISTOGRAM to match the order of fields in
...
mysql.column_stats.
2014-03-28 23:18:33 +04:00
Sergei Golubchik
a91c59c2af
MDEV-5920 MySQL Bug#16765410 FTS: STACK AROUND THE VARIABLE 'MYSTR' WAS CORRUPTED IN INNOBASE_STRNXFRM
2014-03-26 09:43:02 +01:00
unknown
70c08df4dc
MDEV-5840: group_concat( column_json(dynamic_column )) return empty result
...
Fixed max_length of dynamic columns json/create/add functions.
2014-03-13 10:38:41 +02:00
Sergei Golubchik
0dc23679c8
10.0-base merge
2014-02-26 15:28:07 +01:00
Sergei Golubchik
0b9a0a3517
5.5 merge
2014-02-25 16:04:35 +01:00
Sergey Vojtovich
d12c7adf71
MDEV-5314 - Compiling fails on OSX using clang
...
This is port of fix for MySQL BUG#17647863.
revno: 5572
revision-id: jon.hauglid@oracle.com-20131030232243-b0pw98oy72uka2sj
committer: Jon Olav Hauglid <jon.hauglid@oracle.com>
timestamp: Thu 2013-10-31 00:22:43 +0100
message:
Bug#17647863: MYSQL DOES NOT COMPILE ON OSX 10.9 GM
Rename test() macro to MY_TEST() to avoid conflict with libc++.
2014-02-19 14:05:15 +04:00
Sergei Golubchik
84651126c0
MySQL-5.5.36 merge
...
(without few incorrect bugfixes and with 1250 files where only a copyright year was changed)
2014-02-17 11:00:51 +01:00
Sergei Golubchik
72c20282db
10.0-base merge
2014-02-03 15:22:39 +01:00
Sergei Golubchik
59d9d08e2b
5.5 merge
2014-02-01 00:54:03 +01:00
Alexander Barkov
94868914b8
merge 5.3 -> 5.5
2014-01-28 13:00:50 +04:00
Alexander Barkov
f189ed5009
MDEV-5506 safe_mutex: Trying to lock unitialized mutex at safemalloc.c
...
on server shutdown after SELECT with CONVERT_TZ
It's wrong to return my_empty_string from val_str().
Removing my_empty_string. Using make_empty_result() instead.
2014-01-28 12:25:29 +04:00
Sergei Golubchik
37d240ecf9
MySQL-5.5.35 merge
2014-01-22 15:29:36 +01:00
Sergei Golubchik
bec1d903d9
Do the partial merge of WL#5602 correctly:
...
Remove unused code (that should not have been merged)
Add protocol extension (that should have been merged)
Fix bugs (see pack.c)
2013-12-09 12:38:02 +01:00
Tor Didriksen
7ad0e1c527
Bug#12368495 CRASH AND/OR VALGRIND ERRORS WITH REVERSE FUNCTION AND CHARSET CONVERTS
...
Item_func_trim::val_str: we were using the non-mb algorithm for skipping leading spaces
in a multibyte-charset string.
2013-11-05 10:02:57 +01:00
Sergei Golubchik
a30e87414c
merge 10.0-base into 10.0
2013-11-04 08:43:56 +01:00
Sergei Golubchik
5c9d2c6c9f
MDEV-4332 Increase username length from 16 characters
...
10.0 part of the task, fix system tables
2013-11-03 16:31:52 +01:00
Sergei Golubchik
0fdb3bcfdb
10.0-base merge (roles)
2013-10-29 15:08:44 +01:00
Alexander Barkov
71f8ca654e
MDEV-5180 Data type for WEIGHT_STRING is too short in some cases
...
(a bug in upstream)
2013-10-25 15:01:03 +04:00
Sergei Golubchik
8993984342
CURRENT_ROLE() should return NULL, not "NONE"
2013-10-18 09:09:08 -07:00
Sergei Golubchik
06e16b8c97
cannot use lex->grant_user= ¤t_user, where LEX_USER current_user is a global constant,
...
because parser might modify the lex->user (e.g. set lex->user-password).
switch to use LEX_STRING current_user string, and also change other similar constants
to be LEX_STRING's for consistency.
2013-10-18 08:17:56 -07:00
Sergei Golubchik
8122996a59
CURRENT_ROLE() function
2013-10-18 06:55:26 -07:00
Alexander Barkov
426d246f5b
MDEV-5163 Merge WEIGHT_STRING function from MySQL-5.6
2013-10-23 20:25:52 +04:00
Alexander Barkov
ce069b1f6b
A follow-up for WL#5624: Collation customization improvements
...
The reasons for failures to initialize a user collation defined
in Index.xml are now correctly reported
(in SHOW WARNINGS and in the server error log) if the COLLATE clause
is used with an expression, e.g.:
SELECT <exrp> COLLATE <collation name> FROM t1;
Previously, the failure reasons were reported only by COLLATE clauses
in SET NAMES and in DDL statements, e.g.:
SET NAMES utf8 COLLATE utf8_xxx_ci;
CREATE TABLE t1 (a VARCHAR(1) CHARACTER SET utf8 COLLATE utf8_xxx_ci);
2013-10-15 13:39:44 +04:00
Alexander Barkov
a9240dce9e
Merge 10.0-base -> 10.0
2013-10-15 10:26:08 +04:00
Alexander Barkov
285e7aa179
MDEV-4425 REGEXP enhancements
2013-09-26 18:02:17 +04:00
unknown
9d83468e78
merge 5.5 -> 10.0-base
2013-09-25 21:07:06 +03:00
unknown
64d6d8334f
merge 5.3 -> 5.5
2013-09-25 17:16:13 +03:00
unknown
ec7da1561e
MDEV-5039: incorrect Item_func_regex::update_used_tables()
...
Other fix of maybe_null problem and revert of revno: 3608 "MDEV-3873 & MDEV-3876 & MDEV-3912 : Wrong result (extra rows) with ALL subquery from a MERGE view."
2013-09-25 15:30:13 +03:00
unknown
e5746665c9
merge 10.0-base -> 10.0
2013-09-26 21:20:15 +03:00
Alexander Barkov
e33582d20d
Merging TO_BASE64() and FROM_BASE64() from MySQL-5.6
2013-09-23 18:58:33 +04:00
unknown
9dbeb9882f
MDEV-4993:Impossible to free a dynamic column
...
Fix of API of dynamic columns (it made uniform and real function used to free the string).
2013-09-17 22:05:15 +03:00
Tor Didriksen
27c6c4e8ac
Bug#17296644 CONV(X, INT_MIN, INT_MIN) SEGFAULTS THE SERVER
...
Do not call abs(INT_MIN) as the result is undefined.
2013-09-09 14:20:50 +02:00
Alexander Barkov
9adb6e991e
MDEV-4841 Wrong character set of ADDTIME() and DATE_ADD()
2013-08-22 13:59:30 +04:00
Sergei Golubchik
a91a23858d
cleanup
...
* use sql_mode_for_dates() where appropriate.
* always specify an argument for sql_mode_for_dates()
(future-proof. easier to notice and fix if the caller
will start using thd from a local variable or an argument)
2013-08-12 22:05:23 +02: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
Sergei Golubchik
4d57bfdd48
temporal-related changes. don't apply sql_mode flags on the lower level (str_to_datetime),
...
do it on the upper level, in items that return temporal values.
update tests results to match 5.6 better and to fix old bugs.
2013-07-11 23:16:33 +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
unknown
928b21a93c
The compiler warning about ';' fix.
2013-07-08 09:50:18 +03: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
Michael Widenius
2534521f9a
Fixed some merge issues:
...
- temporary tables now works
- mysql-system_tables updated to not use temporary tables
- PASSWORD() function fixed
- Support for STATS_AUTO_RECALC, STATS_PERSISTENT and STATS_SAMPLE_PAGES table options
2013-06-18 02:01:34 +03:00
Michael Widenius
5f1f2fc0e4
Applied all changes from Igor and Sanja
2013-06-15 18:32:08 +03:00
Sergei Golubchik
72ba95873a
10.0-base merge
...
(without InnoDB - all InnoDB changes were ignored)
2013-06-06 21:32:29 +02:00
Sergei Golubchik
4749d40c63
5.5 merge
2013-06-06 17:51:28 +02:00
unknown
a0fd7382bc
Merge 10.0-base -> 10.0
2013-05-28 15:39:56 +02:00
Michael Widenius
3143ad589a
Push a lot of small fixes to get larger parts to compile
2013-05-21 22:00:08 +03:00