To allow to use different configuration directories for MariaDB and MySQL,
configuration files from MYSQL_HOME environment variable will be
processed only, if MARIADB_HOME environment variable was not set.
QUERY_EVENT and ANNOTATE_ROWS_EVENT don't check if the crc32
checksum option is disabled and strip always 4 bytes from
protocol buffer.
Kudos to Ruslan Altynbaev for reporting and providing this small fix.
Added cipher suites ECDHE-RSA-AES128-SHA256 (0xC027) and
ECDHE-RSA-AES256-SHA384 (0xC028) to the cipher map which maps
cipher suite names to the corresponding algorithm ids.
Since this list is still incomplete, and additional list containing
the cipher suite ids and openssl cipher suite names was added. This
list will be used now to detect the cipher suite for the current
connection.
To allow to use different configuration directories for MariaDB and MySQL,
configuration files from MYSQL_HOME environment variable will be
processed only, if MARIADB_HOME environment variable was not set.
QUERY_EVENT and ANNOTATE_ROWS_EVENT don't check if the crc32
checksum option is disabled and strip always 4 bytes from
protocol buffer.
Kudos to Ruslan Altynbaev for reporting and providing this small fix.
To allow to use different configuration directories for MariaDB and MySQL,
configuration files from MYSQL_HOME environment variable will be
processed only, if MARIADB_HOME environment variable was not set.
QUERY_EVENT and ANNOTATE_ROWS_EVENT don't check if the crc32
checksum option is disabled and strip always 4 bytes from
protocol buffer.
Kudos to Ruslan Altynbaev for reporting and providing this small fix.
With implementation of MDEV-16708 (support all commands in binary protocol) we
need to check for local infile in text and binary protocol. Therefore the local
infile relevant part from ma_simple_command was moved to mthd_my_send_cmd method.
unittests always reset the default connection (and depending statements)
which might end up in an error when trying to close a statement which was
not prepared before.
In this case mysql_stmt_reset only needs to set statement status to
MYSQL_STMT_PREPARE if the statement id was set before.
If the plugin dir wasn't specified via mysql_optionsv() or the
environment variable MARIADB_PLUGIN_DIR wasn't set, the plugin
needs to be read from the default location (current path, DLPATH
or PATH).
Due to gcc bug 323 (optimized code gives strange floating point results)
we need to declare floating point variable as volatile, to make sure it
will be reread from memory when converting a long long value to float.
Setting max_allowed_packet in every ma_net_init() call may lead to
race conditions (Thanks to Alexander Sapin for reporting this issue).
Global variables max_allowed_packet_size and
net_buffer_size can be set via mysql_optionsv. If globally and not
per connection this should happen immeidately after library initialization.
While in text protocol the number of rows is resetted in mysql_store/use_result
in binary protocol we need to explicitly reset it when switching to next result set.
Instead of cheking GetConsoleWindow() function, we need to check
if GetConsoleCP() returns a positive number, otherwise we will use
the ANSI Code page Identifier for the system (GetACP()).
- If prepare failed, we need to ignore errormessage from mysql_stmt_execute()
(which is always an error packet, mentioning invalid sttmt_id)
- Added additional check in mysql_stmt_reset for stmt_id == -1.
Since we still need to support OpenSSL 1.0.2 everything is now loaded
in context instead of ssl.
If handshake failed, we now call SSL_get_verify_result for getting a more
defailed error message in case certificate alerts were raised (e.g. revocation)
The fix fails with ssl_crl server test, since certificates are loaded
in global context. If there is a valid certificate in global context,
certificate revocation test on server will fail.
This reverts commit db385afbbe.
Default is OFF, which means MariaDB Connector/C
will be built without iconv support.
If set to OFF The API function mariadb_convert_string will always
return -1 and errorcode ENOTSUP.