summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.4' into 10.5Oleksandr Byelkin2020-03-113-9/+38
|\
| * Merge commit '10.3' into 10.4Oleksandr Byelkin2020-03-113-9/+38
| |\
| | * Merge branch '10.2' into 10.3Oleksandr Byelkin2020-03-062-6/+38
| | |\
| | | * MENT-645 Undefined symbols for architecture x86_64: _pam_syslogAlexey Bychko2020-02-252-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | added cmake checks for pam_ext.h and pam_appl.h headers added check for pam_syslog() added pam_syslog() if doesn't exist all cmake checks performed from inside the plugin
| | * | MDEV-16662: cmake remove empty INSTALL_DEBUG_TARGETDaniel Black2020-02-251-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | No adverse effects since this was made a null function in 6b53f9d781cc19cbec96c3eb048e6407021685a2. This function had the last remaining cmake CMP0026 violation.
* | | | MDEV-21743 Split up SUPER privilege to smaller privilegesAlexander Barkov2020-03-102-2/+2
| | | |
* | | | perfschema mdl related instrumentation changesSergei Golubchik2020-03-101-1/+1
| | | |
* | | | perfschema memory related instrumentation changesSergei Golubchik2020-03-106-10/+10
| | | |
* | | | MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRYAlexander Barkov2020-03-105-4/+39
| | | |
* | | | MDEV-21580: Allow packed sort keys in sort bufferVarun Gupta2020-03-102-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This task deals with packing the sort key inside the sort buffer, which would lead to efficient usage of the memory allocated for the sort buffer. The changes brought by this feature are 1) Sort buffers would have sort keys of variable length 2) The format for sort keys inside the sort buffer would look like |<sort_length><null_byte><key_part1><null_byte><key_part2>.......| sort_length is the extra bytes that are required to store the variable length of a sort key. 3) When packing of sort key is done we store the ORIGINAL VALUES inside the sort buffer and not the STRXFRM form (mem-comparable sort keys). 4) Special comparison function packed_keys_comparison() is introduced to compare 2 sort keys. This patch also contains contributions from Sergei Petrunia.
* | | | Merge pull request #1434 from citrus-it/illumos-auth-socketAndy Fiddaman2020-03-032-1/+45
| | | | | | | | | | | | MDEV-21476: auth_socket: add support for illumos with getpeerucred()
* | | | MDEV-18650: Options deprecated in previous versions - multi_range_countVicențiu Ciorbaru2020-02-131-1/+0
| | | | | | | | | | | | | | | | Remove deprecated system variable multi_range_count. It was ignored from 5.3.
* | | | MDEV-18650: Options deprecated in previous versions - thread_concurrencyVicențiu Ciorbaru2020-02-131-1/+0
| | | | | | | | | | | | | | | | thread_concurrency was ignored since 5.5. Remove it.
* | | | MDEV-18650: Options deprecated in previous versions - storage_engineVicențiu Ciorbaru2020-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove usage of deprecated variable storage_engine. It was deprecated in 5.5 but it never issued a deprecation warning. Make it issue a warning in 10.5.1. Replaced with default_storage_engine.
* | | | MDEV-21702 Add a data type for privilegesAlexander Barkov2020-02-113-3/+3
| | | |
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-02-072-5/+9
|\ \ \ \ | |/ / /
| * | | Fixed compiler warnings from gcc 7.4.1Monty2020-01-292-5/+9
| | | | | | | | | | | | | | | | - Fixed possible error in rocksdb/rdb_datadic.cc
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-01-282-0/+20
|\ \ \ \ | |/ / /
| * | | Merge branch '10.3' into 10.4Oleksandr Byelkin2020-01-242-0/+20
| |\ \ \ | | |/ /
| | * | Merge branch '10.2' into 10.3Oleksandr Byelkin2020-01-242-0/+23
| | |\ \ | | | |/
| | | * MDEV-17292 Package the pam_user_map moduleSergei Golubchik2020-01-212-0/+23
| | | |
| | * | Merge branch '10.2' into 10.3Oleksandr Byelkin2020-01-031-0/+2
| | |\ \ | | | |/
| | | * MDEV-13569: wsrep_info.plugin failed in buildbot with "no nodes coming from ↵Jan Lindström2020-01-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | prim view Modify configuration so that all nodes are part of galera cluster i.e. wsrep_on=ON.
| | | * Fixing tests according to MDEV-20655 maturity stable for user_variablesAlexander Barkov2019-09-241-1/+1
| | | |
| | | * MDEV-20655 maturity stable for user_variablesRasmus Johansson2019-09-241-1/+1
| | | |
* | | | MDEV-17554 history partitioning cleanupsAleksey Midenkov2019-12-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed missed warning on condition boundary * REORGANIZE cases * vers_utils.h removed * test cases cleanup
* | | | cleanup: data type pluginsSergei Golubchik2019-10-313-18/+3
| | | | | | | | | | | | | | | | | | | | simplify type naming (less boilerplate code). don't force a plugin to specify the name twice.
* | | | Data type plugins - minor fixesSergei Golubchik2019-10-3111-19/+28
| | | | | | | | | | | | | | | | typos, comments
* | | | Merge 10.4 into 10.5Marko Mäkelä2019-10-291-1/+1
|\ \ \ \ | |/ / /
| * | | MDEV-19882 pam v2: auth_pam_tool truncates passwords that are not ↵Sergei Golubchik2019-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | null-terminated Don't assume that passwords (and other conv replies) are zero-terminated. If they are, though, strndup() down below will take care of that.
* | | | MDEV-20913 sql_mode=ORACLE: INET6 does not work as a routine parameter type ↵Alexander Barkov2019-10-292-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | and return type Adding the missing grammar.
* | | | MDEV-20844: Add missing override qualifiersMarko Mäkelä2019-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | clang warns if only some overridden member functions in a class are tagged with the C++11 override keyword. Add the missing keywords.
* | | | MDEV-20844 RBR from binary(16) to inet6 fails with error 171: The event was ↵Alexander Barkov2019-10-185-0/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | corrupt, leading to illegal data being read This patch changes the way how INET6 is packed to the RBR binary log: - from fixed length 16 bytes - to BINARY(16) compatible variable length style with trailing 0x00 byte compression. This is to make INET6 fully compatible with BINARY(16) in RBR binary logs, so RBR replication works in this scenarios: - Old master BINARY(16) -> New slave INET6 - New master INET6 -> Old slave BINARY(16) A new class StringPack was added to share the code between Field_string and Field_inet6.
* | | | Part1: MDEV-20837 Add MariaDB_FUNCTION_PLUGINAlexander Barkov2019-10-167-61/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Defining MariaDB_FUNCTION_PLUGIN - Changing the code in /plugins/type_inet/ and /plugins/type_test/ to use MariaDB_FUNCTION_PLUGIN instead of MariaDB_FUNCTION_COLLECTION_PLUGIN. - Changing maturity for the INET6 data type plugin from experimental to alpha.
* | | | MDEV-20831 Table partitioned by LIST/RANGE COLUMNS(inet6) can be created, ↵Alexander Barkov2019-10-154-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but not inserted into This clause in CREATE TABLE: PARTITION BY LIST COLUMNS (inet6column) (PARTITION p1 VALUES IN ('::')) was erroneously written to frm file as: PARTITION BY LIST COLUMNS(inet6column) (PARTITION p1 VALUES IN (_binary 0x3A3A)) I.e. the text value '::' was converted to HEX representation and prefixed with _binary. A simple fix could write `_latin1 0x3A3A` instead of `_binary 0x3A3A`, but in case of INET6 we don't need neither character set introducers, nor HEX encoding, because text representation of INET6 values consist of pure ASCII characters. So this patch changes the above clause to be printed as: PARTITION BY LIST COLUMNS(inet6column) (PARTITION p1 VALUES IN ('::')) Details: The old code in check_part_field() was not friendly to pluggable data types. Replacing this function to two new virtual methods in Type_handler: virtual bool partition_field_check(const LEX_CSTRING &field_name, Item *item_expr) const; virtual bool partition_field_append_value(String *str, Item *item_expr, CHARSET_INFO *field_cs, partition_value_print_mode_t mode) const; so data type plugins can decide whether they need to use character set introducer and/or hex encoding when printing partition values.
* | | | MDEV-20822 INET6 crashes in combination with RBR extended metadataAlexander Barkov2019-10-142-0/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code erroneously assumed that only Field_str descendants can store character set information. After adding Field_inet6, it's not true anymore. Also, after adding Field_inet6, storing field->charset() become not correct either: - Field_inet6::charset() return &my_charset_latin1, because clients see INET6 as VARCHAR(39). - Field_inet6::binlog_type_info().m_cs returns &my_charset_bin because storage engines see INET6 as BINARY(16). We need to store &my_charset_bin to the binlog metadata, so the slave sees INET6 as BINARY(16), like storage engines do, to make the slave treat the replicated data as binary IPv6 address representation (rather than text representation). The correct character set that needs to be stored to the metadata is already populated to binlog_type_info_array[i].m_cs. So the fixed code version uses this value rather than field->charset().
* | | | MDEV-20826 Wrong result of MIN(inet6) with GROUP BYAlexander Barkov2019-10-143-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Type_handler_inet6::is_val_native_ready() was not overriden and returned "false" by default, so Item_sum_min_max::update_field() erroneously went through the min_max_update_str_field() rather than min_max_update_native_field() execution path. As a result '8888::' was compared to 'fff::' in string format (rather than INET6 binary format) and gave "less" instead of "greater". Adding the forgotten overriding method returning "true".
* | | | MDEV-20818 ER_CRASHED_ON_USAGE or Assertion `length <= column->length' ↵Alexander Barkov2019-10-143-7/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | failed in write_block_record on temporary table The patch for `MDEV-20795 CAST(inet6 AS BINARY) returns wrong result` unintentionally changed what Item_char_typecast::type_handler() returns. This broke UNIONs with the BINARY() function, as the Aria engine started to get columns of unexpected data types. Restoring previous behaviour, to return Type_handler::string_type_handler(max_length). The prototype for Item_handed_func::return_type_handler() has changed from: const Type_handler *return_type_handler() const to: const Type_handler *return_type_handler(const Item_handled_func *) const
* | | | MDEV-20800 Server crashes in Field_inet6::store_warning upon updating table ↵Alexander Barkov2019-10-136-31/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | statistics Suppress warnings when Field_inet6::store() is called from read_statistics_for_table() and other optimizer related routines. This patch does for Field_inet6 the same thing with what Monty's patch previously did for other Field_xxx: > commit 1bbe8c5e0f6823acd4780d7563e8c02f8b4c5a01 > Author: Michael Widenius <monty@mariadb.org> > Date: Sun Sep 22 04:08:48 2019 +0300 > > Proper fix for disabling warnings in read_statistics_for_table(). > MDEV-20589: Server still crashes in Field::set_warning_truncated_wrong_value Alas, some meaningful warnings disappeared.
* | | | Removing redundant `--source include/have_innodb.inc` from ↵Alexander Barkov2019-10-132-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | type_inet6_{memory|myisam}.test These tests use only HEAP and MyISAM tables.
* | | | Adding the "override" keyword to ↵Alexander Barkov2019-10-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Item_char_typecast_func_handler_inet6_to_binary::type_handler_for_create_select() Clang fails to compile without it.
* | | | Fixing a mysqld crash on Ubuntu-10.2 (Quantal)Alexander Barkov2019-10-121-2/+2
| | | |
* | | | MDEV-20806 Federated does not work with INET6, returns NULL with warning ↵Alexander Barkov2019-10-121-13/+26
| | | | | | | | | | | | | | | | ER_TRUNCATED_WRONG_VALUE
* | | | MDEV-20790 CSV table with INET6 can be created and inserted into, but cannot ↵Alexander Barkov2019-10-112-0/+121
| | | | | | | | | | | | | | | | be read from
* | | | MDEV-20798 Conversion from INET6 to other types performed without errors or ↵Alexander Barkov2019-10-114-15/+592
| | | | | | | | | | | | | | | | warnings
* | | | MDEV-20808 CAST from INET6 to FLOAT does not produce an errorAlexander Barkov2019-10-113-0/+29
| | | |
* | | | MDEV-20795 CAST(inet6 AS BINARY) returns wrong resultAlexander Barkov2019-10-114-5/+219
| | | |
* | | | Merge 10.4 into 10.5Marko Mäkelä2019-10-111-1/+1
|\ \ \ \ | |/ / /
| * | | mark PAMv2 plugin stableSergei Golubchik2019-10-041-1/+1
| | | |
* | | | MDEV-20783 INET6 cannot be converted to BINARY(16)Alexander Barkov2019-10-103-19/+263
| | | |