summaryrefslogtreecommitdiff
path: root/client
Commit message (Collapse)AuthorAgeFilesLines
* A cleanup for MDEV-17088 Provide tools to encode/decode mysql-encoded file ↵Alexander Barkov2019-12-061-2/+2
| | | | | | | | | system names tests mariadb-conv-utf8 and mariadb-conv-cp932 failed on PPC, because "char" is "unsigned char" on PPC. Adding a cast from "char" to "signed char" in the two affected places.
* A cleanup for MDEV-17088 Provide tools to encode/decode mysql-encoded file ↵Alexander Barkov2019-12-052-46/+319
| | | | | | | | | | | | | | | | system names - Load and convert the entire input file at once, rather than reading string-by-string using fgets(). This change makes it possible to convert from UCS2, UTF16, UTF32 data. - Adding the --delimiter command, to treat the specified characters as delimiters rather than data to convert. Useful in combination with `-f filename` or `-t filename`. The delimiter characters are not converted, they are copied from the input to the output as is. - Adding diagnostics with line number and position if: * an illegal input byte sequence was found * a character cannot be converted to the target character set
* MDEV-17088 - fix overlinkingVladislav Vaintroub2019-11-281-1/+1
| | | | | mariadb-conv does not need to be linked with the client library it does not talk to the server
* MDEV-17088 Provide tools to encode/decode mysql-encoded file system namesAlexander Barkov2019-11-282-0/+212
| | | | The original patch was made by Takashi Sasaki <tsasaki609@gmail.com>.
* MDEV-21062 Do not use popen() in text mode for mysql_upgrade.Vladislav Vaintroub2019-11-221-1/+10
|
* Merge 10.4 into 10.5Marko Mäkelä2019-11-192-13/+5
|\
| * MDEV-21062 Buildbot, Windows - sporadically missing lines from mtr's "exec"Vladislav Vaintroub2019-11-152-13/+5
| | | | | | | | | | Provide own version of popen/pclose, in attempt to workaround sporadic erratic behavior of UCRT's one.
| * Merge 10.3 into 10.4Marko Mäkelä2019-10-101-1/+1
| |\
| | * Cast string literal to char* MDEV-20767Seth Shelnutt2019-10-091-1/+1
| | |
* | | MDEV-12684 Show what config file a sysvar got a value fromSergei Golubchik2019-10-1411-36/+31
| | | | | | | | | | | | | | | change get_one_option() prototype to pass the filename and not to pass the redundant optid.
* | | Merge remote-tracking branch 'origin/10.4' into 10.5Alexander Barkov2019-09-241-1/+1
|\ \ \ | |/ /
* | | Merge 10.4 into 10.5Marko Mäkelä2019-09-241-2/+5
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2019-09-231-2/+5
| |\ \ | | |/ | | | | | | Disable MDEV-20576 assertions until MDEV-20595 has been fixed.
| | * Merge 10.2 into 10.3Marko Mäkelä2019-09-231-2/+5
| | |\
| | | * Enable the auto parameter of the flag `default-character-set`Anel Husakovic2019-09-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #739 When invoking option `--default-character-set=auto` character set from underlying OS settings should be detected for mysqldump.
* | | | MDEV-20477 Merge binlog extended metadata support from the upstreamSachin2019-09-112-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-pick the commits the mysql and some changes. WL#4618 RBR: extended table metadata in the binary log This patch extends Table Map Event. It appends some new fields for more metadata. The new metadata includes: - Signedness of Numberic Columns - Character Set of Character Columns and Binary Columns - Column Name - String Value of SET Columns - String Value of ENUM Columns - Primary Key - Character Set of SET Columns and ENUM Columns - Geometry Type Some of them are optional, the patch introduces a GLOBAL system variable to control it. It is binlog_row_metadata. - Scope: GLOBAL - Dynamic: Yes - Type: ENUM - Values: {NO_LOG, MINIMAL, FULL} - Default: NO_LOG Only Signedness, character set and geometry type are logged if it is MINIMAL. Otherwise all of them are logged. Also add a binlog_type_info() to field, So that we can have extract relevant binlog info from field.
* | | | Merge 10.4 into 10.5Marko Mäkelä2019-09-061-1/+2
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4, except for MDEV-20265Marko Mäkelä2019-08-231-1/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | The MDEV-20265 commit e746f451d57def4be679caafc29976741b3e89f7 introduces DBUG_ASSERT(right_op == r_tbl) in st_select_lex::add_cross_joined_table(), and that assertion would fail in several tests that exercise joins. That commit was skipped in this merge, and a separate fix of MDEV-20265 will be necessary in 10.4.
| | * | Merge 10.2 into 10.3Marko Mäkelä2019-08-211-1/+2
| | |\ \ | | | |/
| | | * MDEV-20377: Fix uninitialized memory in mysqltestMarko Mäkelä2019-08-191-1/+2
| | | |
| | | * Fixed issues found by valgrindMonty2019-08-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - mysqltest didn't free read_command_buf - wait_for_slave_param did write different things to the log if valgrind was used. - Table open cache should not write the initial variable value as it can depend on the configuration or if valgrind is used - A variable in GetResult was used uninitalized
* | | | Fixed issues when running mtr with --valgrindMonty2019-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Note that some issues was also fixed in 10.2 and 10.4. I also fixed them here to be able to continue with making 10.5 valgrind safe again - Disable connection threads warnings when doing shutdown
* | | | Merge 10.4 into 10.5Marko Mäkelä2019-08-161-4/+5
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2019-08-141-4/+5
| |\ \ \ | | |/ /
| | * | MDEV-17609 mysql client sets wrong application name for Readline libraryAleksey Midenkov2019-08-111-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialize_readline() is called with full pathname of executable which sets rl_readline_name to that value. It is expected that rl_readline_name is initialized with static name not depending on the file name at all. Needed for setting custom hotkeys in .inputrc
* | | | Merge 10.4 into 10.5Marko Mäkelä2019-08-1310-12/+32
|\ \ \ \ | |/ / /
| * | | Merge 10.3 into 10.4Marko Mäkelä2019-07-251-0/+1
| |\ \ \ | | |/ /
| | * | Merge 10.2 into 10.3Marko Mäkelä2019-07-191-0/+1
| | |\ \ | | | |/
| | | * Merge 10.1 into 10.2Marko Mäkelä2019-07-181-0/+1
| | | |\
| | | | * imporve clang buildEugene Kosov2019-06-252-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug Maintainer mode makes all warnings errors. This patch fix warnings. Mostly about deprecated `register` keyword. Too much warnings came from Mroonga and I gave up on it.
| * | | | Fixed that mariadb-# binaries reads their corresponding entry from my.cnfMonty2019-07-1810-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added mariadb-# to load_default_groups to all mariadb-# scripts and mariadb-binaries. - Added mariadbd and mariadbd-"version" to load_default_groups for the mysqld/mariadb server - Added mariadb-client to load_default_groups for the mysql/mariadb client Other things - Ignored mysql-test/lib/My/SafeProcess/wsrep_check_version - mysql_install_db will now automatically detect if run from srcdir
| * | | | Merge 10.3 into 10.4Marko Mäkelä2019-07-021-1/+9
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.2 into 10.3Marko Mäkelä2019-07-021-1/+9
| | |\ \ \ | | | |/ /
| | | * | MDEV-19821 "perl;" snippet must run the same perl executable that runs mtr.Vladislav Vaintroub2019-06-211-1/+9
| | | | |
| * | | | Merge 10.3 into 10.4Marko Mäkelä2019-06-271-2/+4
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | We omit the work-around commit 0b7fa5a05deecaf52207f00bb02b5c6b460abb11 because it appears to be needed for CentOS 6 only, which we no longer support.
| | * | | MDEV-17429 mysqldump uses 10.3 options with pre-10.3 servers and breaksAnel Husakovic2019-06-241-2/+4
| | | | |
* | | | | Cleanup - do not dllexport statically built pluginsVladislav Vaintroub2019-06-302-2/+8
| | | | |
* | | | | MDEV-19897 Rename source code variable names from utf8 to utf8mb3Alexander Barkov2019-06-281-1/+1
| | | | |
* | | | | Merge remote-tracking branch 'origin/10.4' into 10.5Monty2019-06-271-8/+1
|\ \ \ \ \ | |/ / / /
| * | | | remove workaround from MDEV-9409Vladislav Vaintroub2019-06-221-8/+1
| | | | |
* | | | | MDEV-19867: fix mysqldump to by default not copy S3 tablesVlad Lesin2019-06-262-3/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two options when coping S3 tables with mysqldump (there is startup option --copy_s3_tables, boolean, default no) 1) Ignore all tables with engine S3, as the data is already safe in S3 and any computer where you restore the backup will automatically discover the S3 table. 2) Copy the table as a normal table with the following 2 changes: - Change ENGINE=S3 to ENGINE=ARIA; - After copy add to log 'ALTER TABLE table_name ENGINE=S3'
* | | | | Merge 10.4 into 10.5Marko Mäkelä2019-06-205-7/+19
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.3 into 10.4Marko Mäkelä2019-06-195-7/+19
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.2 into 10.3Marko Mäkelä2019-06-195-6/+18
| | |\ \ \ | | | |/ /
| | | * | MDEV-19750 mysql command wrong encodingVladislav Vaintroub2019-06-175-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore the detection of default charset in command line utilities. It worked up to 10.1, but was broken by Connector/C. Moved code for detection of default charset from sql-common/client.c to mysys, and make command line utilities to use this code if charset was not specified on the command line.
* | | | | Merge 10.4 into 10.5Marko Mäkelä2019-06-189-5/+9
|\ \ \ \ \ | |/ / / /
| * | | | MDEV-17592 Create MariaDB named commands/symlinksRasmus Johansson2019-06-171-4/+1
| | | | |
| * | | | MDEV-14101 Provide an option to select TLS protocol versionGeorg Richter2019-06-178-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Server and command line tools now support option --tls_version to specify the TLS version between client and server. Valid values are TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3 or a combination of them. E.g. --tls_version=TLSv1.3 --tls_version=TLSv1.2,TLSv1.3 In case there is a gap between versions, the lowest version will be used: --tls_version=TLSv1.1,TLSv1.3 -> Only TLSv1.1 will be available. If the used TLS library doesn't support the specified TLS version, it will use the default configuration. Limitations: SSLv3 is not supported. The default configuration doesn't support TLSv1.0 anymore. TLSv1.3 protocol currently is only supported by OpenSSL 1.1.0 (client and server) and GnuTLS 3.6.5 (client only). Overview of TLS implementations and protocols Server: +-----------+-----------------------------------------+ | Library | Supported TLS versions | +-----------+-----------------------------------------+ | WolfSSL | TLSv1.1, TLSv1,2 | +-----------+-----------------------------------------+ | OpenSSL | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3 | +-----------+-----------------------------------------+ | LibreSSL | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3 | +-----------+-----------------------------------------+ Client (MariaDB Connector/C) +-----------+-----------------------------------------+ | Library | Supported TLS versions | +-----------+-----------------------------------------+ | GnuTLS | (TLSv1.0), TLSv1.1, TLSv1.2, TLSv1.3 | +-----------+-----------------------------------------+ | Schannel | (TLSv1.0), TLSv1.1, TLSv1.2 | +-----------+-----------------------------------------+ | OpenSSL | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3 | +-----------+-----------------------------------------+ | LibreSSL | (TLSv1.0), TLSv1.1, TLSv1,2, TLSv1.3 | +-----------+-----------------------------------------+
* | | | | Merge 10.4 into 10.5Marko Mäkelä2019-06-132-2/+6
|\ \ \ \ \ | |/ / / /
| * | | | Merge 10.3 into 10.4Marko Mäkelä2019-06-122-2/+6
| |\ \ \ \ | | |/ / /