summaryrefslogtreecommitdiff
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-22834: Disks plugin - change datatype to bigintbb-10.5-mdev1501Vicențiu Ciorbaru2020-06-122-9/+10
| | | | | | On large hard disks (> 2TB), the plugin won't function correctly, always showing 2 TB of available space due to integer overflow. Upgrade table fields to bigint to resolve this problem.
* MDEV-21765 Possibly inconsistent behavior of BIT_xx functions with INET6 fieldAlexander Barkov2020-06-092-0/+25
| | | | | Disallow BIT_AND(), BIT_OR(), BIT_XOR() for data types GEOMETRY and INET6, as they cannot return any useful integer values.
* FreeBSD compilation fixesSergei Golubchik2020-06-042-4/+5
| | | | | | | * FreeBSD calls amd64 what Linux calls x86_64 * signal returns void (*)(int) * struct pam_message has char*, not const char* * krb5_free_unparsed_name exists, but is deprecated
* MDEV-22758 Assertion `!item->null_value' failed in ↵Alexander Barkov2020-06-034-13/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Type_handler_inet6::make_sort_key_part When some expression of an INET6 data type involves conversion to INET6 from other data types, e.g. in: - CAST: SELECT CAST(non_inet6_expr AS INET6) - CASE and hybrid functions: SELECT CASE WHEN expr THEN inet6_expr ELSE non_inet6_expr END - UNION: SELECT inet6_expr UNION SELECT non_inet6_expr the result column must be fixed as NULL-able even if the non-inet6 expression itself is not NULL-able, because at the execution time the conversion can fail. Details: - Forcing NULL-ability if conversion from some data type to INET6 is involved (for non-constant or for expensive expressions). - Non-expensive constant expressions are tested for NULL-ability at fix_fields() time, so things like `CAST('::' AS INET6)` are still detected as NOT NULL. - Adding "bool warn" parameter into a few methods, to avoid redundant warnings at fix_fields() time when calculating NULL-ability of constant values.
* MDEV-22509: Server crashes in Field_inet6::store_inet6_null_with_warn / ↵Varun Gupta2020-06-022-0/+24
| | | | | | | | | | | | | Field::maybe_null For field with type INET, during EITS collection the min and max values are store in text representation in the statistical table. While retrieving the value from the statistical table, the value is stored back in the original field using binary form instead of text and this was resulting in the crash. Introduced 2 functions in the Field structure: 1) store_to_statistical_minmax_field 2) store_from_statistical_minmax_field
* MDEV-20280 PERCENTILE_DISC() rejects temporal and string inputAlexander Barkov2020-06-012-0/+59
|
* MDEV-22764 Crash with a stored aggregate function returning INET6Alexander Barkov2020-06-012-0/+72
| | | | | | | Item_sum_sp did not override val_native(). So the reported script crashed in the default implementation in Item::val_native() on DBUG_ASSERT(). Implementing a correct Item_sum_sp::val_native().
* MDEV-20809 EXTRACT from INET6 value does not produce any warningsAlexander Barkov2020-06-012-0/+21
| | | | | Disallowing EXTRACT(xxx FROM inet6arg) as fix time. Adding a new method Type_handler::can_return_extract_source().
* Merge 10.4 into 10.5Marko Mäkelä2020-05-313-8/+8
|\
* | Fixed access to undefined memory found by valgrind and MSANMonty2020-05-231-1/+1
| | | | | | | | | | | | When my_vsnprintf() is patched, the code protected disabled with 'WAITING_FOR_BUGFIX_TO_VSPRINTF' should be enabled again. Also all %b formats in this patch should be revert to %s again
* | Fixed compiler warnings from gcc and clang 5.0.1Monty2020-05-231-3/+3
| |
* | Merge 10.4 into 10.5Marko Mäkelä2020-05-131-0/+2
|\ \ | |/
| * Merge branch '10.4-release' into 10.4Oleksandr Byelkin2020-05-111-0/+1
| |\
| * | MDEV-22459 pam v2 should log an error if auth_pam_tool exec failsSergei Golubchik2020-05-081-0/+2
| | |
* | | Merge branch '10.4' into 10.5Sergei Golubchik2020-05-091-0/+1
|\ \ \ | | |/ | |/|
| * | Merge branch '10.3' into 10.4Sergei Golubchik2020-05-091-0/+1
| |\ \ | | |/ | |/|
| | * MDEV-21886 MariaDB RPM upgrade overwrites PAM user mapSergei Golubchik2020-05-071-0/+1
| | | | | | | | | | | | %config(noreplace) /etc/security
* | | Merge 10.4 into 10.5Marko Mäkelä2020-05-052-1/+6
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-05-052-1/+6
| |\ \ | | |/
| | * Merge branch '10.2' into 10.3Oleksandr Byelkin2020-05-042-1/+6
| | |\
| | | * MDEV-20685: compile fixes for Solaris/OSX/AIXDaniel Black2020-04-292-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sig_return: Solaris/OSX returns different function ptr Move defination to my_alarm.h as its the only use. prevents compile warnings (copied from 10.3 branch) mysys/my_sync.c:136:19: error: 'cur_dir_name' defined but not used [-Werror=unused-const-variable=] 136 | static const char cur_dir_name[]= {FN_CURLIB, 0}; | ^~~~~~~~~~~~ fix compile error (DEPRECATED) leaked from ssl headers. In file included from /export/home/dan/mariadb-server-10.4/sql/sys_vars.cc:37: /export/home/dan/mariadb-server-10.4/sql/sys_vars.ic:69: error: "DEPRECATED" redefined [-Werror] 69 | #define DEPRECATED(X) X | In file included from /export/home/dan/mariadb-server-10.4/include/violite.h:150, from /export/home/dan/mariadb-server-10.4/sql/sql_class.h:38, from /export/home/dan/mariadb-server-10.4/sql/sys_vars.cc:36: /usr/include/openssl/ssl.h:2356: note: this is the location of the previous definition 2356 | # define DEPRECATED __attribute__((deprecated)) | Avoid Werror condition on non-Linux: plugin/server_audit/server_audit.c:2267:7: error: variable 'db_len_off' set but not used [-Werror=unused-but-set-variable] 2267 | int db_len_off; | ^~~~~~~~~~ plugin/server_audit/server_audit.c:2266:7: error: variable 'db_off' set but not used [-Werror=unused-but-set-variable] 2266 | int db_off; | ^~~~~~ auth_gssapi fix include path for Solaris Consistent with the upstream packaged patch: https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/database/mariadb-103/patches/06-gssapi.h.patch compile warnings on Solaris [ 91%] Building C object plugin/server_audit/CMakeFiles/server_audit.dir/server_audit.c.o /plugin/server_audit/server_audit.c: In function 'auditing_v8': /plugin/server_audit/server_audit.c:2194:20: error: unused variable 'db_len_off' [-Werror=unused-variable] 2194 | static const int db_len_off= 128; | ^~~~~~~~~~ /plugin/server_audit/server_audit.c:2193:20: error: unused variable 'db_off' [-Werror=unused-variable] 2193 | static const int db_off= 120; | ^~~~~~ /plugin/server_audit/server_audit.c:2192:20: error: unused variable 'cmd_off' [-Werror=unused-variable] 2192 | static const int cmd_off= 4432; | ^~~~~~~ At top level: /plugin/server_audit/server_audit.c:2192:20: error: 'cmd_off' defined but not used [-Werror=unused-const-variable=] /plugin/server_audit/server_audit.c:2193:20: error: 'db_off' defined but not used [-Werror=unused-const-variable=] 2193 | static const int db_off= 120; | ^~~~~~ /plugin/server_audit/server_audit.c:2194:20: error: 'db_len_off' defined but not used [-Werror=unused-const-variable=] 2194 | static const int db_len_off= 128; | ^~~~~~~~~~ cc1: all warnings being treated as errors tested on: $ uname -a SunOS openindiana 5.11 illumos-b97b1727bc i86pc i386 i86pc
* | | | MDEV-22437 make THR_THD* variable thread_localEugene Kosov2020-05-052-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now all access goes through _current_thd() and set_current_thd() functions. Some functions like THD::store_globals() can not fail now.
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-04-292-11/+5
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-04-291-2/+2
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2020-04-281-2/+2
| | |\ \ | | | |/
| | | * MDEV-21913 Add pam_user_map.so file to binary tarball packageSergei Golubchik2020-04-281-2/+2
| | | |
| * | | MDEV-18565 Galera mtr-suite fails if galera library is not installedSergei Golubchik2020-04-271-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | revert/simplify f5390eea9a9 remove galera-specific checks from mtr and the main suite
* | | | Merge 10.4 into 10.5Marko Mäkelä2020-04-254-11/+11
|\ \ \ \ | |/ / / | | | | | | | | | | | | The functional changes of commit 5836191c8f0658d5d75484766fdcc3d838b0a5c1 (MDEV-21168) are omitted due to MDEV-742 having addressed the issue.
| * | | Merge 10.3 into 10.4Marko Mäkelä2020-04-161-3/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | In main.index_merge_myisam we remove the test that was added in commit a2d24def8cc42d27c72d833abfb39ef24a2b96ba because it duplicates the test case that was added in commit 5af12e463549e4bbc2ce6ab720d78937d5e5db4e.
| | * | Merge 10.2 into 10.3Marko Mäkelä2020-04-151-2/+2
| | |\ \ | | | |/
| | | * MDEV-20604: Duplicate key value is silently truncated to 64 characters in ↵Oleksandr Byelkin2020-04-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | print_keydup_error Added indication of truncated string for "s" and "M" formats
* | | | MDEV-22214 mariadbd.exe calls function mysqld.exe, and crashesVladislav Vaintroub2020-04-103-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop linking plugins to the server executable on Windows. Instead, extract whole server functionality into a large DLL, called server.dll. Link both plugins, and small server "stub" exe to it. This eliminates plugin dependency on the name of the server executable. It also reduces the size of the packages (since tiny mysqld.exe and mariadbd.exe are now both linked to one big DLL) Also, simplify the functionality of exporing all symbols from selected static libraries. Rely on WINDOWS_EXPORT_ALL_SYMBOLS, rather than old self-backed solution. fix compile error replace GetProcAddress(GetModuleHandle(NULL), "variable_name") for server exported data with actual variable names. Runtime loading was never required,was error prone , since symbols could be missing at runtime, and now it actually failed, because we do not export symbols from executable anymore, but from a shared library This did require a MYSQL_PLUGIN_IMPORT decoration for the plugin, but made the code more straightforward, and avoids missing symbols at runtime (as mentioned before). The audit plugin is still doing some dynamic loading, as it aims to work cross-version. Now it won't work cross-version on Windows, as it already uses some symbols that are *not* dynamically loaded, e.g fn_format and those symbols now exported from server.dll , when earlier they were exported by mysqld.exe Windows, fixes for storage engine plugin loading after various rebranding stuff Create server.dll containing functionality of the whole server make mariadbd.exe/mysqld.exe a stub that is only calling mysqld_main() fix build
* | | | 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
|\ \ \ \ | |/ / /