1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-09-11 08:30:59 +03:00

1089 Commits

Author SHA1 Message Date
Georg Richter
5565de132d Merge branch '3.1' into 3.3 2022-07-08 07:49:24 +02:00
Georg Richter
f1b08b8369 Partial fix for MDEV-27405:
The return value of SSL_read indicates an error if it is <= 0, not
if it is < 0.
2022-07-08 07:46:00 +02:00
Georg Richter
876ba73097 Merge branch '3.3' of https://github.com/mariadb-corporation/mariadb-connector-c into 3.3 2022-07-03 13:47:07 +02:00
Georg Richter
5f1f517cfa Various typo fixes
Includes fixes from PR-201.
2022-07-03 13:45:37 +02:00
Marko Mäkelä
485a3ad68c Merge 3.2 into 3.3 2022-07-01 08:21:27 +03:00
Marko Mäkelä
c3a7a38ee1 Merge 3.1 into 3.2 2022-07-01 08:20:53 +03:00
Marko Mäkelä
d12fd88b6c Fix clang -Wunused-but-set-variable 2022-07-01 08:20:25 +03:00
Georg Richter
3f7719c74d Typo fixes (from PR #200) 2022-06-27 13:23:35 +02:00
hyung-hwan
6baff67db8 Merge branch 'mariadb-corporation:3.3' into 3.3 2022-06-23 13:28:54 +09:00
Georg Richter
abddf0b0af Fixed ROTATE_EVENT
If timestamp is zero and flag LOG_EVEBNT_ARTIFICIAL_F was set the
event is a fake ROTATE_EVENT (https://mariadb.com/kb/en/fake-rotate_event/)
and needs different handling:
- a checksum might follow if @@binlog_checksum was set (CRC32)
- length calculation is different
2022-06-22 16:25:37 +02:00
hyung-hwan
8af9a685fd Merge branch 'mariadb-corporation:3.3' into 3.3 2022-06-21 18:29:07 +09:00
Georg Richter
3230e75646 Fix for CONC-601:
zconf.h is no longer in zlib but will be generated via
zconf.h.cmakein. This fixes build error on MacOS when using
bundled zlib library.
2022-06-21 11:17:56 +02:00
Georg Richter
1e2f6d5a12 Fix for CONC-600:
If mariadb_fetch_event() detects an unknown event, the event will be
returned instead of releasing it.

Kudos to '007gzs' for providing this patch!
2022-06-21 10:51:59 +02:00
hyunghwan.chung
c0fea17e2a enhanced mysql_close() and other related parts to prevent memory leaks when terminating an initiated but unestablished connection 2022-06-21 17:49:45 +09:00
Georg Richter
7523c27e66 Windows build fix 2022-06-15 11:42:27 +02:00
Georg Richter
77a1f79754 Merge branch '3.2' into 3.3 2022-05-31 08:11:02 +02:00
Georg Richter
899f678632 Merge branch '3.1' into 3.2 2022-05-31 08:03:27 +02:00
Georg Richter
04be26ed2b Merge branch '3.1' of https://github.com/mariadb-corporation/mariadb-connector-c into 3.1 2022-05-31 07:52:08 +02:00
Georg Richter
02a2be0cbe Fix build of static plugins
When building a plugin statically include directories
have to be set when building libmariadb.
2022-05-31 07:50:57 +02:00
Marko Mäkelä
4a99777934 Fix permissions after 79137a4ae1
Thanks to Michal Schorm for noticing this.
2022-05-23 16:20:21 +03:00
Georg Richter
fcce4a8c76 CONC-592: Register replica with host and port
Added new option MARIADB_OPT_RPL_REGISTER_REPLICA which expects
two parameters, host and port. When this option was set, rpl_open
will send a COM_REGISTER_SLAVE command with server_id, host and
port to the connected server. This information can be retrieved
by "SHOW SLAVE STATUS" command.

Example:

rc= mysql_optionsv(mysql, MARIADB_OPT_RPL_REGISTER_REPLICA,
                   "myhost", 123);
2022-05-23 14:05:06 +02:00
Georg Richter
5e94e7c27f Merge branch '3.2' into 3.3 2022-05-19 16:44:12 +02:00
Georg Richter
497d463d9c Merge branch '3.1' into 3.2 2022-05-19 16:38:41 +02:00
Vladislav Vaintroub
12b9ae7fd8 MDEV-28581 - libmariadb.dll is no longer inside MSI
Fix regression introduced in MDEV-27109 in patch dde7deee51
The NAMELINK stuff apparently does not work where it does not make sense
2022-05-16 20:30:39 +02:00
Georg Richter
e23035d27a Merge branch '3.2' into 3.3 2022-05-02 17:27:18 +02:00
Georg Richter
ade9bb9c3e Merge branch '3.1' into 3.2 2022-05-02 10:57:27 +02:00
Georg Richter
ab7a81e79e Added new macro OPT_SET_EXTENDED_VALUE_BIN
OPT_SET_EXTENDED_VALUE_BIN can be used to set
binary values for options:
OPT_SET_EXTENDED_VALUE_BIN(options, key, key_len, val, len)
2022-04-30 05:37:31 +02:00
Georg Richter
f75a819efd Post fix for CONC-588
Instead to allocate procy header string the poiter was assigned
to extended options.
2022-04-29 16:30:27 +02:00
Georg Richter
00e5eaf403 Merge branch '3.2' into 3.3 2022-04-20 18:55:58 +02:00
Georg Richter
3ba4c4a613 Merge branch '3.1' into 3.2 2022-04-20 18:55:05 +02:00
Georg Richter
3ce51b0b3e Fix for CONC-587:
Since alerts may happen after handshake (for example with described
test in CONC-587 using TLSv1.3 protocol or by renegotiation) the
tls error message needs to be retrieved if error is a protocol error
(SSL_ERROR_SSL) and/or if errno was not set.
2022-04-20 18:48:54 +02:00
Georg Richter
f192d3d1ba Fix for CONC-588:
Free proxy_header (allocated via MARIADB_OPT_PROXY_HEADER option)
when closing connection.
2022-04-19 06:27:32 +02:00
Georg Richter
d706eaf90a PR 172
Fix Sigbus when calling mysql_real_connect_start on ARM/MacOS
2022-03-03 06:43:21 +01:00
Georg Richter
340f920fe7 Fix for static windows library (mariadbclient):
For static library don't build internal zlib as library, but
add sources to object library.
2022-02-10 15:08:59 +01:00
Georg Richter
c08063a265 Removed bundled ZStandard compression library.
The ZStandard compression plugin will be build only if the
ZStandard libraries and include files are installed on the
builder.
2022-02-04 14:53:42 +01:00
Georg Richter
770cf2286a CONC-575: Support for MySQL zstd compression
ZSTD compression is now supported for connections
to a MySQL Server 8.0.

Compression algorithms are supported via compression
plugins, which can be found in plugins/compress.
2022-01-25 05:02:33 +01:00
Georg Richter
b5c1a23c82 Merge branch '3.2' into 3.3 2022-01-25 03:52:42 +01:00
Georg Richter
3fe2f50545 Merge branch '3.1' into 3.2 2022-01-25 03:51:45 +01:00
Georg Richter
dce4b8a89d Fix/replacement for PR 107:
Instead of calculating size with packlen for date/time types,
we need to use the max. value of the corresponding type.
2022-01-24 07:34:30 +01:00
Sergei Golubchik
dde7deee51 MDEV-27109 mysql_config mariadb_config lists non existant -lmariadb
create libmariadb.a as a symlink to libmariadbclient.a

put libmariadb.so in Development not in SharedLibraries
2022-01-14 22:13:34 +01:00
Georg Richter
721a41d778 Merge branch '3.2' into 3.3 2022-01-14 20:10:05 +01:00
Georg Richter
c912a46f78 Merge branch '3.1' into 3.2 2022-01-14 20:09:28 +01:00
Georg Richter
141fb0d5fa Test fixes:
- For reconnection/and multi host tests specify also socket location,
since mtr doesn't use default socket for localhost connections

- parse_connection_string now returns NULL for empty password in
  curly braces
2022-01-04 10:37:12 +01:00
Georg Richter
dae2d119a2 Windows build fixes 2022-01-03 06:34:59 +01:00
Georg Richter
510c7e5dfe New options MARIADB_CONNECTION_BYTES_READ/SENT
Added new options MARIADB_CONNECTION_BYTES_READ and
MARIADB_CONNECTION_BYTES_SENT which can be passed to
mariadb_get_infov() api funcion to obtain the bytes sent
or read to/from database server.
2022-01-02 14:14:39 +01:00
Georg Richter
bc7bbd4752 Merge branch '3.2' into 3.3 2021-12-31 17:20:46 +01:00
Georg Richter
0670c38c2b Merge pull request #188 from kou/rows-events-v2
Add support for ROWS_EVENT V2
2021-12-31 17:19:49 +01:00
Sergei Golubchik
43b60edc92 use mariadb_connection() to detect whether the server is MariaDB 2021-12-25 17:23:38 +01:00
Georg Richter
0489f34b48 Merge branch '3.2' into 3.3 2021-12-22 07:18:27 +01:00
Georg Richter
7bd53326b4 Merge pull request #186 from kou/fix-indent
Fix indent
2021-12-15 06:32:36 +01:00