Oleksandr Byelkin
3ad37ed0eb
Merge 10.4 into 10.5
2019-11-07 08:52:30 +01:00
Alexander Barkov
46f2f24ec4
MDEV-20985 Add LEX methods stmt_drop_{function|procedure}() and stmt_alter_{function|procedure}_start()
...
Adding a few helper LEX methods,
to unify sql_yacc.yy and sql_yacc_ora.yy easier
2019-11-05 22:37:45 +04:00
Alexander Barkov
79e295b601
Cleanup: moving '(' after the stmt_create_stored_function_start() call
...
This is a logically better position.
Also, this makes the code in sql_yacc.yy and sql_yacc_ora.yy look more similar.
2019-11-05 17:35:26 +04:00
Marko Mäkelä
ec40980ddd
Merge 10.3 into 10.4
2019-11-01 15:23:18 +02:00
Alexander Barkov
f2cff12556
MDEV-20924 Unify grammar rules: field_type_string and sp_param_field_type_string
...
In order to:
- unify sql_yacc.yy and sql_yacc_ora.yy easier
- move more functionality from the parser to Type_handler
(so plugins can override the behavior)
this patch:
- removes rules sp_param_field_type_string and sp_param_field_type
from sql_yacc_ora.yy
- adds a new virtial method Type_handler::Column_definition_set_attributes()
2019-10-30 11:58:52 +04:00
Alexander Barkov
f1e9a0acc8
Cleanups in the two *.yy grammar files
...
Fixing unintentionally diverged parts:
- syncing indentation
- syncing "unlikely"
- syncyning missing new lines
- fixing typos
2019-10-29 07:23:36 +04:00
Marko Mäkelä
3043f38436
Merge 10.4 into 10.5
2019-10-28 17:10:34 +02:00
Oleksandr Byelkin
5b6b16636d
MDEV-20730: Syntax error on SELECT INTO @variable with CTE
...
added forgotem WITH option to spacial case with INTO
2019-10-17 23:20:34 +02:00
Oleksandr Byelkin
de2186dd2f
MDEV-20074: Lost connection on update trigger
...
Instead of checking lex->sql_command which does not corect in case of triggers
mark tables for insert.
2019-10-17 17:32:14 +02:00
Alexey Botchkov
ba8e5e689c
MDEV-16620 JSON_ARRAYAGG and JSON_OBJECTAGG.
...
Ison_objectagg implemented.
2019-10-14 14:24:22 +04:00
Rucha Deodhar
837ad9ab97
MDEV-10014 Add RETURNING to INSERT
...
Closes #1384
2019-10-14 10:29:31 +02:00
Sergei Golubchik
721a9df751
cleanup: formatting
...
comments, whitespaces
2019-10-14 10:29:31 +02:00
Sergei Golubchik
828d9ae597
cleanup: reduce code duplication
2019-10-14 10:29:31 +02:00
Alexey Botchkov
7dc74bb3b5
Merge branch 'MDEV-16620' of https://github.com/markus456/server into bb-10.5-hf
...
Conflicts:
sql/sql_yacc.yy
2019-10-10 00:31:59 +04:00
Alexander Barkov
c717483c9d
MDEV-20016 Add MariaDB_DATA_TYPE_PLUGIN
2019-10-04 22:14:44 +04:00
Alexander Barkov
c2d8db66be
MDEV-20735 Allow non-reserved keywords as user defined type names
2019-10-03 16:03:32 +04:00
Alexander Barkov
d168601e83
MDEV-20734 Allow reserved keywords as user defined type names
2019-10-03 14:02:00 +04:00
Aleksey Midenkov
19b5b17773
SQL: followup misc rename on versioning
...
vers_sys_type_t -> vers_kind_t
2019-09-30 14:05:09 +03:00
Aleksey Midenkov
58fdf5b2fa
MDEV-16144 Default TIMESTAMP clause for SELECT from versioned
...
1. Removed TIMESTAMP/TRANSACTION unit auto-detection in favor of default TIMESTAMP.
Reasons:
1.1. rare practical use and doubtful advantage of such auto-detection;
1.2. it conflicts with MDEV-16226 (TRX_ID-based versioned tables performance improvement).
Needless check_unit membership removed.
2. SQL: versioning type handling refactoring
Vers_type_handler hierarchy stores versioning properties of type.
virtual Type_handler::vers() accesses specialization of
Vers_type_handler for specific type.
virtual Vers_type_handler::kind() returns versioning kind
(timestamp/trx_id).
Removed Type_handler::Vers_history_point_check_unit() in favor of
Type_handler::vers().
Renames:
require_timestamp() -> require_timestamp_error()
require_trx_id() -> require_trx_id_error()
EDIT by Alexander Barkov (@abarkov):
check_sys_fields() moved to Vers_type_handler::check_sys_fields()
2019-09-30 14:05:09 +03:00
Alexander Barkov
edef6a0074
Merge remote-tracking branch 'origin/10.4' into 10.5
2019-09-24 12:53:11 +04:00
Marko Mäkelä
1333da90b5
Merge 10.4 into 10.5
2019-09-24 10:07:56 +03:00
Igor Babaev
b44171428a
MDEV-19956 Queries with subqueries containing UNION are not parsed
...
Shift-Reduce conflicts prevented parsing some queries with subqueries that
used set operations when the subqueries occurred in expressions or in IN
predicands.
The grammar rules for query expression were transformed in order to avoid
these conflicts. New grammar rules employ an idea taken from MySQL 8.0.
2019-09-23 09:57:37 -07:00
Marko Mäkelä
5a92ccbaea
Merge 10.3 into 10.4
...
Disable MDEV-20576 assertions until MDEV-20595 has been fixed.
2019-09-23 17:35:29 +03:00
Marko Mäkelä
c016ea660e
Merge 10.2 into 10.3
2019-09-23 10:25:34 +03:00
Anel Husakovic
1ad79c8187
MDEV-19679 - CREATE SERVER needs tweaks for compatibility with CONNECT engine
2019-09-20 01:54:38 -07:00
Alexander Barkov
2f88bd2da2
MDEV-20634 Report disallowed subquery errors as such (instead of parse error)
2019-09-20 10:36:20 +04:00
Marko Mäkelä
d28686ada6
Merge 10.4 into 10.5
2019-09-12 16:36:46 +03:00
Marko Mäkelä
60c04be659
Merge 10.3 into 10.4
2019-09-12 12:16:40 +03:00
Alexander Barkov
f1309fac33
Adding missing semicolons to sql_yacc.yy (10.3), indentation cleanups.
2019-09-11 05:12:37 +04:00
Alexander Barkov
48f8e3f3f4
Merge remote-tracking branch 'origin/10.2' into 10.3
2019-09-11 04:47:01 +04:00
Alexander Barkov
5ec4efb7b1
Adding missing semicolons to sql_yacc.yy (10.2)
2019-09-11 04:44:24 +04:00
Marko Mäkelä
780d2bb8a7
Merge 10.4 into 10.5
2019-09-06 14:25:20 +03:00
Oleksandr Byelkin
4f10d0918d
Merge branch '10.3' into 10.4
2019-09-02 14:57:05 +02:00
Aleksey Midenkov
a3e49c0d36
MDEV-18501 Partition pruning doesn't work for historical queries (cleanup)
...
Cleanup removes useless allocation.
2019-09-01 14:04:24 +03:00
WayneXia
a896bebfa6
MDEV-18844 Implement EXCEPT ALL and INTERSECT ALL operations
2019-08-24 21:44:41 +08:00
Marko Mäkelä
67ddb6507d
Merge 10.4 into 10.5
2019-08-16 14:35:32 +03:00
Alexander Barkov
6073049a36
MDEV-20353 Add separate type handlers for unsigned integer data types
2019-08-15 21:53:24 +04:00
Alexander Barkov
afe6eb499d
Revert "MDEV-20342 Turn Field::flags from a member to a method"
...
This reverts commit e86010f909
.
Reverting on Monty's request, as this change makes merging
things from 10.5 to 10.2 much harder.
2019-08-14 20:27:00 +04:00
Marko Mäkelä
1d15a28e52
Merge 10.3 into 10.4
2019-08-14 18:06:51 +03:00
Alexander Barkov
e86010f909
MDEV-20342 Turn Field::flags from a member to a method
2019-08-14 13:33:01 +04:00
Alexander Barkov
c1599821a5
Merge remote-tracking branch 'origin/10.4' into 10.5
2019-08-13 23:49:10 +04:00
Marko Mäkelä
624dd71b94
Merge 10.4 into 10.5
2019-08-13 18:57:00 +03:00
Alexander Barkov
95cdc1ca5f
Merge commit '43882e764d6867c6855b1ff057758a3f08b25c55' into 10.4
2019-08-13 11:42:31 +04:00
Aleksey Midenkov
0b74c8832d
MDEV-19127 Assertion `row_start_field' failed in vers_prepare_keys upon ALTER TABLE
...
Prevent conflicting clauses at parser level.
Clear HA_VERSIONED_TABLE flag for DROP SYSTEM VERSIONING (for the sake
of strictness).
2019-08-11 12:32:08 +03:00
Alexander Barkov
a8def12e8a
MDEV-20263 sql_mode=ORACLE: BLOB(65535) should not translate to LONGBLOB
2019-08-06 18:02:03 +04:00
Oleksandr Byelkin
2792c6e7b0
Merge branch '10.3' into 10.4
2019-07-28 13:43:26 +02:00
Oleksandr Byelkin
d97342b6f2
Merge branch '10.2' into 10.3
2019-07-26 22:42:35 +02:00
Oleksandr Byelkin
cf8c2a3c3b
Merge branch '10.1' into 10.2
2019-07-26 07:03:39 +02:00
Oleksandr Byelkin
ae476868a5
Merge branch '5.5' into 10.1
2019-07-25 13:27:11 +02:00
Oleksandr Byelkin
bccd9d0e3a
MDEV-20108: [ERROR] mysqld got signal 11 in st_select_lex::add_table_to_list
...
Use the same select as for usual table list.
2019-07-24 13:20:36 +02:00