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

182 Commits

Author SHA1 Message Date
Georg Richter
b4efe73c9e session tracking implementation (10.2-integration):
- At the moment the following session tracking types are supported:
  SESSION_TRACK_SCHEMA
  SESSION_TRACK_SYSTEM_VARIABLES
  SESSION_TRACK_STATE_CHANGE
  SESSION_TRACK_TRANSACTION_CHARACTERISTICS
- New API functions
  mysql_session_track_get_next
  mysql_session_track_get_first
2016-03-31 08:41:12 +02:00
Georg Richter
21be8f4eef Moved connection_handler to mysql->extension 2016-03-29 09:44:03 +02:00
Georg Richter
bea035a72b - Unittests: link static library instead of dynamic
- TLS/SSL: renamed HAVE_SSL to HAVE_TLS to avoid trouble in
  10.2-integration
- Fixed wrong timeout in non-blocking mode
- Fixed valgrind error in prepared statement
2016-03-28 10:29:55 +02:00
Georg Richter
4b1e94bccc Since we use TLS and not SSL functions and structures were renamed
from SSL to TLS
2016-03-16 18:20:08 +01:00
Georg Richter
cc0c34554d - Fixes for 10.2-integration
- As requested by Wlad we use connect timeout for read/write unless
    the connection was established.
- Added experimental session cache support for OpenSSL. It's currently
  disabled
2016-03-08 17:08:01 +01:00
Georg Richter
4ca933bb81 Global cleanup:
removed global locks
  removed dead code and files
  removed dbug
2016-02-08 18:43:02 +01:00
Georg Richter
f8912935b1 - Fixed several aurora plugin crashes (after reconnect)
- moved mysql->reconnect to mysql->options.reconnect
2016-01-16 07:04:28 +01:00
Georg Richter
4cb9b79ced renamed MARIADB_OPT_SSL_PASSWORD to PASSPHRASE
Since MySQL server is picky about cipher suites, cipher suites in GnuTLS
switched back to default (NORMAL) without RHE_DSA
2016-01-05 09:49:49 +01:00
Georg Richter
4c7e5cbd1b Added new option MARIADB_OPT_USERDATA.
Syntax: mysql_optionsv(MYSQL *mysql, MYSQL_OPT_USERDATA, void *key, void
*data)
2015-12-14 11:56:17 +01:00
Georg Richter
da017f5381 Merge branch 'master' of https://github.com/MariaDB/mariadb-connector-c
Conflicts:
	CMakeLists.txt
2015-12-10 12:55:02 +01:00
Georg Richter
bec245a913 Initial aurora implementation 2015-12-10 12:52:51 +01:00
Georg Richter
edcfe061c1 Added new functions mysql_get_optionv and mysql_get_option 2015-12-10 06:51:01 +01:00
Georg Richter
32f1903f97 Added new option MARIADB_OPT_SSL_PASSWORD which allows use of
decrypted client certificate (private key only).
Currently this option is supported by GnuTLS and OpenSSL only
2015-11-13 12:41:29 +01:00
Georg Richter
e85caa83ca Added new test for testing binding interfaces:
To run these tests a TCP/IP connection is required and
  the environment variable MYSQL_TEST_BINADDR has to be specified.
2015-11-02 18:42:00 +01:00
Eric Herman
f10aa72112 fix compiler cast warnings in unittests
size_t is not always an unsigned long on all platforms, but for diagnostic
message in a test, it should be fine to cast it this way

addresses these warnings:

unittest/libmariadb/connection.c:635:3: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'time_t' [-Wformat=]
   diag("elapsed: %u", elapsed);

unittest/libmariadb/dyncol.c:149:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
     diag("%s %d", my_keys[i].str, my_keys[i].length);

unittest/libmariadb/dyncol.c:227:5: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
     diag("Key: %s Len: %d", unpack_keys[i].str, unpack_keys[i].length);
2015-10-16 11:55:01 +02:00
Georg Richter
c516ca70b3 We now build an object library which prevents compiling sources twice (for shared and static libraries)
Fixed test cases
2015-01-21 11:47:34 +01:00
Georg Richter
0e92a68589 (Corrected) Fix for CONC-118: memory leak when reconnecting 2015-01-14 15:29:27 +01:00
Georg Richter
2ceb2f7ffc Fix for conc-77: Backslash escaped quotes (', "") are not parsed correctly 2014-02-10 09:04:01 +01:00
holzboote@googlemail.com
8c0a7fff46 Fix for CONC-70: Unknown error when reading large packets via conpressed protocol 2014-01-27 21:14:02 +01:00
holzboote@googlemail.com
1b36e6d3b5 Fix for CONC-66: Support for quoted values in configuration file 2014-01-22 22:31:08 +01:00
holzboote@googlemail.com
a6ee40ab8e Added mingw support (Win32). Special thanks to Eric Trinh for his patch! 2014-01-11 20:09:32 +01:00
Georg Richter
1fabe4eaac Fixes for DBD:mysql (CONC-57)
added missing functions mysql_read_query_result and mysql_get_parameters
2013-10-14 14:17:54 +02:00
holzboote@googlemail.com
725425a9c4 Fixes for Win64 build 2013-10-10 15:14:15 +02:00
holzboote@googlemail.com
b5db6c127f Fixed crash/undefined behaviour when running large amount of threads:
replaced select() with poll()
Added conneciton timeout support for windows platforms
2013-08-01 09:56:36 +02:00
holzboote@googlemail.com
7fd247bb3b Fixed compiler warnings 2013-07-01 05:27:17 +02:00
Georg Richter
a1c12629e4 CONC-26: CLIENT_REMEMBER_OPTIONS is not supported 2013-05-10 10:27:42 +02:00
Georg Richter
f6d4749279 Fixed CONC-9: removed winsock2 from mysql.h
Fixed CONC-24: reconnect failed
  mysql_reconnect didn't set reconnect flag for new connection
2013-05-09 14:11:33 +02:00
Georg Richter
d99bccf5eb Fix for CONC-21:
Ignore the 5.5.5- prefix for MariaDB 10 and report correct version numbers
2013-04-25 18:24:21 +02:00
Georg Richter
20f87f29c6 Fix for unbuffered stmt fetch: increase number of rows
Added Test for CONC-24
2013-04-24 17:02:03 +02:00
Georg Richter
7afc51d9aa more test fixes 2013-03-13 21:43:39 +01:00
Georg Richter
d1b93bd17e Fixed bug in character set autodetection
Fixed compiler warnings in test suite
Skipped change_users tests: They don't work anymore (mysql_change_user) security fix
Applied patch from John Schember
2013-03-13 11:00:56 +01:00
Georg Richter
2968f5dc19 - Fix for mysql_stmt_next_result:
obtain number of fields from mysql structure
  added test case (ps_new.c)
- Added additional parameter cipher for mysql_ssl_set
- some cosmetics for test cases
2012-11-29 17:27:56 +01:00