- 30 Sep, 2023 7 commits
-
-
Sergei Golubchik authored
KDF(key_str, salt [, {info | iterations} [, kdf_name [, width ]]]) kdf_name is "hkdf" or "pbkdf2_hmac" (default). width (in bits) can be any number divisible by 8, by default it's taken from @@block_encryption_mode iterations must be positive, and is 1000 by default OpenSSL 1.0 doesn't support HKDF, so it'll return NULL. This OpenSSL version is still used in SLES 12 and CentOS 7
-
Sergei Golubchik authored
like ErrConvString, but puts the string in 'single quotes'
-
Sergei Golubchik authored
followup for 7ba9c7fb
-
Sergei Golubchik authored
* don't introduce random four-space-gaps into the middle of description (meaning, nicely aligned wrapped string in the code gets ugly in the rpm) * remove obsolete comment * MariaDB-connect-engine is a required package for MariaDB-connect-engine-jdbc not "recommended" * don't recommend both mariadb-java-client and mysql-connector-java * in fact, don't recommend anything, it works badly for old rpm < 4.13, installs something that user may not want, and install redundand deps. Let's rethink how to do it meaningfully. And not break tests. followup for 7ba9c7fb
-
Sergei Golubchik authored
Not ready yet, it fails its own test suite This reverts commit 485c9b1f
-
Sergei Golubchik authored
-
Sergei Golubchik authored
first seen in daca468c
-
- 29 Sep, 2023 3 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 27 Sep, 2023 1 commit
-
-
Vladislav Vaintroub authored
Commit 738d4604 changed component name from "backup" to "Backup". Use the new name now.
-
- 25 Sep, 2023 1 commit
-
-
Alexey Botchkov authored
Fix the Cache_flip_event_log constructor.
-
- 24 Sep, 2023 4 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Vladislav Vaintroub authored
- optimize atomic store64/load64 implementation. - allow CRC32 optimization. Do not allow pmull yet, as this fails like in https://stackoverflow.com/questions/54048837/how-to-perform-polynomial-multiplication-using-arm64
-
Sergei Golubchik authored
-
- 23 Sep, 2023 2 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 21 Sep, 2023 4 commits
-
-
Nikita Malyavin authored
-
Nikita Malyavin authored
-
Alexander Barkov authored
- Removing two copies of the drop_routine. Adding a shared and much simplified version. - Removing LEX metods: bool stmt_drop_function(const DDL_options_st &options, const Lex_ident_sys_st &db, const Lex_ident_sys_st &name); bool stmt_drop_function(const DDL_options_st &options, const Lex_ident_sys_st &name); bool stmt_drop_procedure(const DDL_options_st &options, sp_name *name); The code inside the methods was very similar. Adding one method instead: bool stmt_drop_routine(const Sp_handler *sph, const DDL_options_st &options, const Lex_ident_sys_st &db, const Lex_ident_sys_st &name); - Adding a new virtual method Sp_handler:sqlcom_drop(). It helped to unify the code inside the new stmt_drop_routine().
-
Alexander Barkov authored
Resolving the shift/reduce conflict conflict in: GRANT .. ON /*ambiguity*/ FUNCTION f1 TO foo@localhost; GRANT ... ON /*ambiguity*/ [TABLE] function TO foo@localhost; and in REVOKE .. ON /*ambiguity*/ FUNCTION f1 TO foo@localhost; REVOKE ... ON /*ambiguity*/ [TABLE] function TO foo@localhost; using a new %prec directive.
-
- 19 Sep, 2023 1 commit
-
-
Marko Mäkelä authored
ibuf_bitmap_buffered(): A new predicate, to check if the IBUF_BITMAP_BUFFERED bit for a particular page is set. ibuf_merge(): If ibuf_bitmap_buffered() does not hold, skip the records for the page. One reason why we might have this situation is the bug that was fixed in commit 34c283ba (MDEV-32132).
-
- 15 Sep, 2023 1 commit
-
-
Lena Startseva authored
Fixed tests: main.flush_corruption - disabled service connection for some queries since it is necessary that the query SELECT pass in the same session
-
- 14 Sep, 2023 2 commits
-
-
Andrew Hutchings authored
This test does not work in embedded and I cannot see an obvious way of fixing that. The test not running in embedded is not the end of the world here.
-
Dwarf Mason authored
-
- 13 Sep, 2023 1 commit
-
-
Alexander Barkov authored
Problem: Under terms of MDEV-27490, we'll update Unicode version used to compare identifiers to 14.0.0. Unlike in the old Unicode version, in the new version a string can grow during lower-case. We cannot perform check_db_name() inplace any more. Change summary: - Allocate memory to store lower-cased identifiers in memory root - Removing check_db_name() performing both in-place lower-casing and validation at the same time. Splitting it into two separate stages: * creating a memory-root lower-cased copy of an identifier (using new MEM_ROOT functions and Query_arena wrapper methods) * performing validation on a constant string (using Lex_ident_fs methods) Implementation details: - Adding a mysys helper function to allocate lower-cased strings on MEM_ROOT: lex_string_casedn_root() and a Query_arena wrappers for it: make_ident_casedn() make_ident_opt_casedn() - Adding a Query_arena method to perform both MEM_ROOT lower-casing and database name validation at the same time: to_ident_db_internal_with_error() This method is very close to the old (pre-11.3) check_db_name(), but performs lower-casing to a newly allocated MEM_ROOT memory (instead of performing lower-casing the original string in-place). - Adding a Table_ident method which additionally handles derived table names: to_ident_db_internal_with_error() - Removing the old check_db_name()
-
- 12 Sep, 2023 1 commit
-
-
Sergei Petrunia authored
(Review input addressed) (Added handling of UPDATE/DELETE and partitioning w/o index) If the properties of the used collation allow, do the following equivalent rewrites: 1. UPPER(key_col)=expr -> key_col=expr expr=UPPER(key_col) -> expr=key_col (also rewrite both sides of the equality at the same time) 2. UPPER(key_col) IN (constant-list) -> key_col IN (constant-list) - Mark utf8mb{3,4}_general_ci as collations that allow this. - Add optimizer_switch='sargable_casefold=ON' to control this. (ON by default in this patch) - Cover the rewrite in Optimizer Trace, rewrite name is "sargable_casefold_removal".
-
- 11 Sep, 2023 1 commit
-
-
Thirunarayanan Balathandayuthapani authored
sys_shrink_buffer_pool to make it as generic name.
-
- 09 Sep, 2023 2 commits
-
-
Monty authored
- Updated capabilities for PostgreSQL in server.cfg - Updated test-ATIS & test-table-elimination to work with PostgreSQL - Updated test-transaction test to also work with non transactional tables Other things: - Added test of tables with many keys in test-insert - Added 2 new GROUP BY .. ORDER BY test
-
Monty authored
This works the same as secure-file-priv="", but is more obvious way to turn of secure-file-priv.
-
- 08 Sep, 2023 2 commits
-
-
Sergei Golubchik authored
-
Sergei Golubchik authored
avoid deprecation warning
-
- 04 Sep, 2023 2 commits
-
-
Alexander Barkov authored
- Moving get_canonical_filename() from a public function to a method in handler. - Adding a helper method is_canonical_filename() to handler. - Adding helper methods left(), substr(), starts_with() to Lex_cstring. - Adding helper methods is_sane(), buffer_overlaps(), max_data_size() to CharBuffer. - Adding append_casedn() to CharBuffer. It implements the main functionality that replaces the being removed my_casedn_str() call. - Adding a class Table_path_buffer, a descendant of CharBuffer with size FN_REFLEN. - Changing get_canonical_filename() to get a pointer to Table_path_buffer instead just a pointer to char. - Changing the data type of the "path" parameter and the return type of get_canonical_filename() from char* to Lex_cstring.
-
Alexander Barkov authored
1. "mariabackup --innobackupex" now prints a new warning: '--innobackupex' is deprecated and will be removed in a future release 2. "mariabackup --innobackupex" does not print this wrong warning any more: --innobackupex: Deprecated program name. It will be removed in a future release, use '/path/to/mariadb-backup' instead
-
- 30 Aug, 2023 2 commits
-
-
Federico Razzoli authored
-
Anel Husakovic authored
MDEV-31231: Remove JavaWrappers.jar from mariadb-test-data and create new mariadb-plugin-connect-jdbc package - Jar file created ```bash $ find .|grep JdbcInterface ./storage/connect/connect_jars/JdbcInterface.jar ``` - Debian package created ```bash $ dpkg -c mariadb-plugin-connect-jdbc_11.2.0+maria~ubu2004_amd64.deb drwxr-xr-x root/root 0 2023-05-16 09:50 ./ drwxr-xr-x root/root 0 2023-05-16 09:50 ./usr/ drwxr-xr-x root/root 0 2023-05-16 09:50 ./usr/share/ drwxr-xr-x root/root 0 2023-05-16 09:50 ./usr/share/doc/ drwxr-xr-x root/root 0 2023-05-16 09:50 ./usr/share/doc/mariadb-plugin-connect-jdbc/ -rw-r--r-- root/root 253 2023-05-16 09:50 ./usr/share/doc/mariadb-plugin-connect-jdbc/changelog.gz -rw-r--r-- root/root 2502 2023-05-09 15:14 ./usr/share/doc/mariadb-plugin-connect-jdbc/copyright drwxr-xr-x root/root 0 2023-05-16 09:50 ./usr/share/mariadb/ -rw-r--r-- root/root 7538 2023-05-16 09:50 ./usr/share/mariadb/JdbcInterface.jar ``` - Tested on RPM ``` $ ls -la|grep connect -rw-r--r-- 1 root root 2633772 May 23 11:27 MariaDB-connect-engine-11.2.0-1.el7.x86_64.rpm -rw-r--r-- 1 root root 3430040 May 23 11:27 MariaDB-connect-engine-debuginfo-11.2.0-1.el7.x86_64.rpm -rw-r--r-- 1 root root 9872 May 23 11:27 MariaDB-connect-engine-jdbc-11.2.0-1.el7.x86_64.rpm -rw-r--r-- 1 root root 36 May 23 11:21 install_manifest_connect-engine-jdbc.txt -rw-r--r-- 1 root root 123 May 23 11:21 install_manifest_connect-engine.txt -rw-r--r-- 1 root root 0 May 23 11:21 install_manifest_connect-engineSymlinks.txt $ rpm -qlp MariaDB-connect-engine-jdbc-11.2.0-1.el7.x86_64.rpm /usr/share/mariadb /usr/share/mariadb/JdbcInterface.jar $ for o in --conflicts --enhances --obsoletes --provides --recommends --requires --suggests --supplements ; do echo opt $o; rpm -q $o /home/dan/repos/build-mariadb-server-11.2/MariaDB-connect-engine-jdbc-11.2.0-1.fc38.x86_64.rpm; done opt --conflicts opt --enhances opt --obsoletes opt --provides MariaDB-connect-engine-jdbc = 11.2.0-1.fc38 MariaDB-connect-engine-jdbc(x86-64) = 11.2.0-1.fc38 opt --recommends MariaDB-connect-engine mariadb-java-client mysql-connector-java postgresql-jdbc opt --requires java-1.8.0-openjdk-headless rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsZstd) <= 5.4.18-1 opt --suggests opt --supplements ``` Closes PR #1890 (MDEV-26218) Reviewer: <daniel@mariadb.org>
-
- 29 Aug, 2023 2 commits
-
-
Alexander Barkov authored
Also fixes MDEV-32025 Crashes in MDL_key::mdl_key_init with lower-case-table-names=2 Change overview: - In changes made in MDEV-31948, MDEV-31982 the code path which originaly worked only in case of lower-case-table-names==1 also started to work in case of lower-case-table-names==2 in a mistake. Restoring the original check_db_name() compatible behavior (but without re-using check_db_name() itself). - MDEV-31978 erroneously added a wrong DBUG_ASSERT. Removing. Details: - In mysql_change_db() the database name should be lower-cased only in case of lower_case_table_names==1. It should not be lower-cased for lower_case_table_names==2. The problem was caused by MDEV-31948. The new code version restored the pre-MDEV-31948 behavior, which used check_db_name() behavior. - Passing lower_case_table_names==1 instead of just lower_case_table_names to the "casedn" parameter to DBNameBuffer constructor in sql_parse.cc The database name should not be lower-cased for lower_case_table_names==2. This restores pre-MDEV-31982 behavioir which used check_db_name() here. - Adding a new data type Lex_ident_db_normalized, it stores database names which are both checked and normalized to lower case in case lower_case_table_names==1 and lower_case_table_names==2. - Changing the data type for the "db" parameter to Lex_ident_db_normalized in lock_schema_name(), lock_db_routines(), find_db_tables_and_rm_known_files(). This is to avoid incorrectly passing a non-normalized name in the future. - Restoring the database name normalization in mysql_create_db_internal() and mysql_rm_db_internal() before calling lock_schema_name(). The problem was caused MDEV-31982. - Adding database name normalization in mysql_alter_db_internal() and mysql_upgrade_db(). This fixes MDEV-32026. - Removing a wrong assert in Create_sp_func::create_with_db() was incorrect: DBUG_ASSERT(Lex_ident_fs(*db).ok_for_lower_case_names()); The database name comes to here checked, but not normalized to lower case with lower-case-table-names=2. The assert was erroneously added by MDEV-31978. - Recording lowercase_tables2.results and lowercase_tables4.results according to MDEV-29446 Change SHOW CREATE TABLE to display default collations These tests are skipped on buildbot on all platforms, so this change was forgotten in the patch for MDEV-29446.
-
Thirunarayanan Balathandayuthapani authored
- This issue caused by commit 4700f2ac(MDEV-30796) During bulk insert operation, InnoDB wrongly stores the next autoincrement value as current autoincrement value. So update the current autoincrement value rather than next auto increment value.
-
- 28 Aug, 2023 1 commit
-
-
Ruoyu Zhong authored
`fmt::detail::make_arg` does not accept temporaries. Make it happy by storing the format arg values in a temporary array first. Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
-