Kristian Nielsen
fb076581f6
MDEV-10271: Stopped SQL slave thread doesn't print a message to error log like IO thread does
...
Make the slave SQL thread always output to the error log the message "Slave
SQL thread exiting, replication stopped in ..." whenever it previously
outputted "Slave SQL thread initialized, starting replication ...".
Before this patch, it was somewhat inconsistent in which cases the message
would be output and in which not, depending on the exact time and cause of
the condition that caused the SQL thread to stop.
2016-07-25 13:07:50 +02:00
Sergey Vojtovich
840015f586
MDEV-10238 - tokudb_bugs.db938 fails due to connection logging (also affects
...
buildbot)
Updated test results according to MDEV-6720.
2016-07-21 14:13:12 +04:00
Oleksandr Byelkin
848d211c5c
MDEV-10084: SQL batch united response
...
Reduce number of network send() calls for batch update requests
2016-07-04 16:02:49 +02:00
Daniel Bartholomew
05d07e3380
bump the VERSION
2016-07-04 08:36:24 -04:00
Alexander Barkov
59ec3973aa
Removing duplicate code in double-to-longlong conversion.
...
Adding Converter_double_to_longlong and reusing it in:
1. Field_longlong::store(double nr)
2. Field_double::val_int()
3. Item::val_int_from_real()
4. Item_dyncol_get::val_int()
As a good side efferct, now overflow in conversion in the mentioned
val_xxx() methods return exactly the same warning.
2016-07-03 19:12:20 +04:00
Sergei Golubchik
b258f91103
fix ALTER TABLE .. DROP CONSTRAINT IF NOT EXISTS
2016-07-02 14:52:23 +02:00
Sergei Golubchik
5c764a0eb8
clarify ER_CANT_DROP_FIELD_OR_KEY
...
include the dropped object type
2016-07-02 14:52:20 +02:00
Elena Stepanova
5e3a1ea1e4
Post-commit text fix for embedded: 12d75e6121
- new thread stack size
2016-07-02 04:04:22 +03:00
Elena Stepanova
1d2fa98260
Post-commit test fixes
...
- 12d75e6121
- new thread stack size
- 99e48cb1d9
- warning text changed
- 6c173324ff
- default values for BLOBs
- c87e002bbb
- don't return a negative zero
2016-07-02 03:26:32 +03:00
Sergei Golubchik
06acd7a2fc
don't save vcol flags in frm
...
this is useless now, flags are recalculated on load anyway.
But storing flags on disk means we cannot easily change (add,
remove, or renumber) them in the new MariaDB version.
2016-07-01 22:30:09 +02:00
Sergei Golubchik
c3e06381ab
cannot use item->const_item() in open_table_from_share()
...
because table->map is set much later.
Use check_vcol_func_processor() to detect fields too.
2016-07-01 22:30:09 +02:00
Sergei Golubchik
12d75e6121
increase stack size for labrador
2016-07-01 22:30:09 +02:00
Alexander Barkov
675d8a94f5
Removing the "thd" argument from Item::create_field_for_create_select().
...
"thd" is available through the "table" argument, as table->in_use.
2016-07-01 21:45:57 +04:00
Sergei Golubchik
ffac85482b
MDEV-8989 ORDER BY optimizer ignores equality propagation
...
Restore the fix from the commit 99cd5a9
that was lost in a merge.
2016-07-01 16:44:17 +02:00
Nirbhay Choubey
76f492e26d
Post-merge: Update test results
2016-06-30 23:56:18 -04:00
Sergei Golubchik
932646b1ff
Merge branch '10.1' into 10.2
2016-06-30 16:38:05 +02:00
Sergei Golubchik
0bb30f3603
refresh 32bit rdiffs
2016-06-30 11:43:02 +02:00
Sergei Golubchik
20dbfbb49c
vcols: store flags first
2016-06-30 11:43:02 +02:00
Sergei Golubchik
8f9530a9ab
revert second lookahead in the lexer
...
it's not enough to look for NOT NULL IS, this also fails queries like
SELECT NOT NULL <=> NULL;
and adds no value anymore, as the grammar now requires parentheses
2016-06-30 11:43:02 +02:00
Sergei Golubchik
80de816df0
test for ALTER TABLE ... SET DEFAULT
2016-06-30 11:43:02 +02:00
Sergei Golubchik
3687edeec9
clarify the order of evaluation for INSERT
2016-06-30 11:43:02 +02:00
Sergei Golubchik
f93a2a3b3b
various cleanups
...
* remove a confusing method name - Field::set_default_expression()
* remove handler::register_columns_for_write()
* rename stuff
* add asserts
* remove unlikely unlikely
* remove redundant if() conditions
* fix mark_unsupported_function() to report the most important violation
* don't scan vfield list for default values (vfields don't have defaults)
* move handling for DROP CONSTRAINT IF EXIST where it belongs
* don't protect engines from Alter_inplace_info::ALTER_ADD_CONSTRAINT
* comments
2016-06-30 11:43:02 +02:00
Sergei Golubchik
047d762d51
move all new 10.2 error codes to start from 4000
2016-06-30 11:43:02 +02:00
Sergei Golubchik
5f22379fc8
fix for CREATE ... ( ... DEFAULT const_expr ... )
...
make it return same errors on CREATE as
CREATE ... ( ... DEFAULT const ... )
2016-06-30 11:43:02 +02:00
Sergei Golubchik
7039077195
change vcol->non_deterministic to vcol->flags
2016-06-30 11:43:02 +02:00
Sergei Golubchik
0a056c9b53
better ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED
2016-06-30 11:43:02 +02:00
Sergei Golubchik
1b4f0962c1
fix grammar for "DEFAULT (SELECT 1)" not be a syntax error
...
the error should be "subselect is not allowed here", same as for
DEFAULT ((SELECT 1))
2016-06-30 11:43:02 +02:00
Sergei Golubchik
ed77ee1aab
cleanup: change Item::walk() to take void* not uchar*
...
and remove all related casts to uchar*
also remove a couple of unused methods
2016-06-30 11:43:02 +02:00
Sergei Golubchik
e8bdb73ade
function DEFAULT(x) now works for expression defaults
2016-06-30 11:43:02 +02:00
Sergei Golubchik
3205da7124
cleanup default.test
2016-06-30 11:43:02 +02:00
Sergei Golubchik
519e244b8e
tests for auto-generated constraint names
2016-06-30 11:43:02 +02:00
Sergei Golubchik
99e48cb1d9
restore ER_VIEW_CHECK_FAILED to be different from ER_CONSTRAINT_FAILED
...
collaterals:
* use %`s, not '%s'
* use correct SQLSTATE codes for these two errors
2016-06-30 11:43:02 +02:00
Sergei Golubchik
c87e002bbb
str2decimal: don't return a negative zero
2016-06-30 11:43:02 +02:00
Sergei Golubchik
da372fb9dc
ull2dec: exact calculation of the precision
2016-06-30 11:43:02 +02:00
Alexander Barkov
4dcbb775ae
parentheses in default
...
- Adding SHOW CREATE TABLE into all DEFAULT tests,
to cover need_parentheses_in_default() for all items
- Fixing a few items not to print parentheses in DEFAULT:
spatial function-alike predicates, IS_IPV4 and IS_IPV6 functions,
COLUMN_CHECK() and COLUMN_EXISTS().
2016-06-30 11:43:02 +02:00
Alexander Barkov
b3e11d33db
Adding a comment why we need column_default_non_parenthesized_expr
...
(a new rule in sql_yacc.yy)
2016-06-30 11:43:02 +02:00
Michael Widenius
fb67cde237
Use default character set for expressions
...
- Force usage of () around complex DEFAULT expressions
- Give error if DEFAULT expression contains invalid characters
- Don't use const_charset_conversion for stored Item_func_sysconf expressions
as the result is not constaint over different executions
- Fixed Item_func_user() to not store calculated value in str_value
2016-06-30 11:43:02 +02:00
Alexander Barkov
8f226121e5
More test for MDEV-10134 Add full support for DEFAULT
...
ENCRYPT(), SHA(), SHA2(),
AES_ENCRYPT(), AES_DECRYPT(),
DES_ENCRYPT(), DES_DECRYPT()
2016-06-30 11:43:02 +02:00
Alexander Barkov
ca8950cc11
More test for MDEV-10134 Add full support for DEFAULT
...
CRC32(), MD5(), FROM_BASE64(), TO_BASE64(), HEX(), UNHEX(),
ENCODE(), DECODE(), PASSWORD(),
COMPRESS(), UNCOMPRESS(), UNCOMPRESSED_LENGTH().
2016-06-30 11:43:02 +02:00
Alexander Barkov
f9cdc74851
More test for MDEV-10134 Add full support for DEFAULT
...
UUID(), UUID_SHORT()
2016-06-30 11:43:02 +02:00
Alexander Barkov
6c626117e7
More test for MDEV-10134 Add full support for DEFAULT
...
Miscelaneous functions:
BENCHMARK(), SLEEP(), ROW_COUNT(), FOUND_ROWS(),
GET_LOCK(), RELEASE_LOCK(), IS_USED_LOCK(), IS_FREE_LOCK(),
MASTER_POS_WAIT(), MASTER_GTID_WAIT(), BINLOG_GTID_POS(),
ST_GIS_DEBUG(), DECODE_HISTOGRAM(),
2016-06-30 11:43:02 +02:00
Alexander Barkov
2654eabbe0
More test for MDEV-10134 Add full support for DEFAULT
...
Miscelaneous functions:
LIKE_RANGE_MIN(), LIKE_RANGE_MAX(), WEIGHT_STRING(),
GET_FORMAT(), FORMAT(), LOAD_FILE().
2016-06-30 11:43:02 +02:00
Alexander Barkov
111c0f1423
More test for MDEV-10134 Add full support for DEFAULT
...
Metadata functions
2016-06-30 11:43:02 +02:00
Alexander Barkov
a3e756c5b8
More test for MDEV-10134 Add full support for DEFAULT
...
Dynamic column functions
2016-06-30 11:43:02 +02:00
Alexander Barkov
b5870a5dd3
More test for MDEV-10134 Add full support for DEFAULT
...
Functions DATABASE() and USER().
2016-06-30 11:43:02 +02:00
Alexander Barkov
5ba196c428
More test for MDEV-10134 Add full support for DEFAULT
...
INET4/INET6 functions
2016-06-30 11:43:02 +02:00
Alexander Barkov
6cb4731fdf
More test for MDEV-10134 Add full support for DEFAULT
...
- INT result functions
- CAST variants: COLLATE, BINARY, CONVERT(..USING)
2016-06-30 11:43:02 +02:00
Alexander Barkov
778a1a4aac
More test for MDEV-10134 Add full support for DEFAULT
...
UDF
2016-06-30 11:43:02 +02:00
Alexander Barkov
582ee3973e
More tests for MDEV-10134 Add full support for DEFAULT
...
Numeric functions with string input
2016-06-30 11:43:02 +02:00
Alexander Barkov
f9fb646b16
More tests for MDEV-10134 Add full support for DEFAULT
...
Boolean predicates
2016-06-30 11:43:02 +02:00