1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

286 Commits

Author SHA1 Message Date
Georg Richter
2a7cc977fb Shared memory fixes 2016-08-24 19:26:30 +02:00
Georg Richter
c374386bce Fix crash (introduced by CLIENT_REMEMBER_OPTIONS leak fix)
see also http://lists.askmonty.org/pipermail/commits/2016-August/009643.html
2016-08-19 08:24:47 +02:00
Georg Richter
9207626bb4 10.2-integration
readded api functions
- mysql_debug (dummy)
- mysql_get_parameters
added low level api functions
- mysql_net_field_length
- mysql_net_read
2016-08-18 12:24:32 +02:00
Georg Richter
b68843a93d Merge from 2.3: Free options if CLIENT_REMEMBER_OPTIONS wasn't set 2016-08-16 18:38:41 +02:00
Georg Richter
429b166cbe Move mariadb specific client flags and server capabilities to mysql->extension 2016-08-16 14:58:15 +02:00
Vladislav Vaintroub
1cefbbecb9 C/C integration 2016-08-12 13:12:49 +02:00
Georg Richter
7b14603438 Fix for CONC-196: merged manually from connector_c_2.3 branch 2016-08-03 12:30:54 +02:00
Georg Richter
26d31929d4 several fixes for mariadb_stmt_execute_direct:
- allow param binding via mysql_stmt_attr_set:
  mysql_stmt_attr_set(stmt, STMT_ATTR_PREBIND_PARAMS, &param_count);
- If a prepared statement will be reexecuted, we send COM_STMT_CLOSE
  together with COM_STMT_PREPARE and COM_STMT_EXECUTE
2016-06-18 14:07:28 +02:00
Georg Richter
ac651213eb Merge branch 'master' of https://github.com/MariaDB/mariadb-connector-c 2016-06-01 20:23:57 +02:00
Georg Richter
3d83b9bcee Fix for repreparing statement: Don't send COM_STMT_RESET if we will send
COM_STMT_CLOSE afterwards
2016-06-01 20:21:03 +02:00
Vladislav Vaintroub
7496789f10 Fix openssl sigpipe correctly, move signal handler to openssl.c 2016-05-31 14:24:55 +02:00
Vladislav Vaintroub
b82515497c fix compile error 2016-05-30 19:01:13 +00:00
Georg Richter
b90b17804d Another fix for CONC-177: ps-protocol with integer values and zerofill
weren't correctly converted to strings
2016-05-30 20:46:29 +02:00
Vladislav Vaintroub
ec383d59fa check mysql->extension for NULL before referencing it 2016-05-30 17:50:59 +00:00
Georg Richter
b54783f7e1 Fix for OpenSSL: Since OpenSSL doesn't use setsockopt/MSG_NOSIGNAL we
need to install a sigpipe handler (in case the application didn't
install one already)
2016-05-25 17:10:22 +02:00
Vladislav Vaintroub
437b9cd1e4 CONC-184 : provide a function to cancel a current connection
(without invalidating MYSQL struct, without sending KILL)
This apparently is useful for replication handling in the server
2016-05-21 12:35:06 +00:00
Georg Richter
6126e668ca 10.2-integration: Added support for character set "auto":
character set auto sets the character set to the corresponding locale or
codepage (windows)
2016-05-08 12:28:37 +02:00
Georg Richter
c70128b50c Fix for CONC-173: Fixed memory leak in mysql_real_connect
fixed warning in pthread_once
2016-04-18 09:32:25 +02:00
Vladislav Vaintroub
72a314295b thread safe libray initialization 2016-04-09 17:01:03 +02:00
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
06e5422715 10.2-integration fixes:
- always send COM_STMT_RESET if specified
- prevent double free of context buffer
2016-03-10 14:02:30 +01:00
Georg Richter
3cfc5f8654 Removed option WITH_NONBLOCK 2016-03-10 09:51:53 +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
89fce625b5 Build fixes for 10.2 integration 2016-03-01 13:54:33 +01:00
Georg Richter
f7d7730bc1 renamed exported function mysql_reconnect to mariadb_reconnect 2016-02-24 08:26:34 +01:00
Georg Richter
8620b754ea Added missing error messages for wrong protocol
moved connection handler into net->extension (ABI break)
2016-02-23 13:50:14 +01:00
Georg Richter
d68b48f954 10.2 integration fixes
- changed plugin API to avoid crashes: Oracle/MariaDB changed
    structure several times without updating interface version.
  - ABI fixes: moved additional net items to net->extension (connection
    handler and com_multi buffer)
2016-02-22 11:37:13 +01:00
Georg Richter
c014b9f6ae 10.2 integration fixes:
- renamed/prefixed password functions
- prepared statement fixes for mysql_client_test
2016-02-19 22:23:00 +01:00
Georg Richter
409d673291 10.2 - integration fixes
- enable data truncation reporting for ps by default
- added plugin protoype definitions to mysql.h10.2 - integration fixes
2016-02-18 10:45:26 +01:00
Georg Richter
d303cf76a7 More 10.2-integ fixes:
- renamed my_net functions (ma_net)
- fixed wrong types in ma_schannel.c
- fixed wrong parameter in client_plugin when building load string
2016-02-17 10:00:53 +01:00
Georg Richter
28edd6d18e 10.2-integration
renamed duplicate symbols in mariadb_version.h
2016-02-17 07:42:11 +01:00
Georg Richter
85525c2ba7 Merge remote-tracking branch 'origin/3.1' 2016-02-16 17:40:03 +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