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

126 Commits

Author SHA1 Message Date
Vladislav Vaintroub
7cb8479605 Fix Win64 warnings. Correctly define my_socket in ma_global.h 2016-10-12 21:05:31 +00:00
Vladislav Vaintroub
3f2fe93020 Revert "Implement mysql_stmt_execute_direct without COM_MULTI."
This partially reverts commit a06574afab.
2016-09-15 12:14:58 +00:00
Vladislav Vaintroub
8afde21910 Merge branch 'master' of https://github.com/mariadb/mariadb-connector-c 2016-09-09 20:03:16 +00:00
Georg Richter
9f88e25fd6 Compiler warning fixes 2016-09-03 12:46:50 +02:00
Georg Richter
fbf6fd1598 Valgrind fixes:
- fixed 2 unitialized memory errors
- fixed leak in client test
2016-08-21 20:35:13 +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
405bb926e9 Fix for CONC-198: can't use two statements per connection
If we have multiple open cursors we need to check the server_status per statement (not per connection)
2016-08-18 08:04:46 +02:00
Georg Richter
429b166cbe Move mariadb specific client flags and server capabilities to mysql->extension 2016-08-16 14:58:15 +02:00
Georg Richter
8f388ad291 Changed MYSQL_BIND structure (so it will have the same size as in 2.3 and libmysql 2016-08-15 20:52:15 +02:00
Georg Richter
6c0ae00fbb Fix for CONC-197: manual merge form 2.2.3 branch 2016-08-11 15:32:18 +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
Vladislav Vaintroub
a06574afab Implement mysql_stmt_execute_direct without COM_MULTI.
Network roundtrip is avoided, but  no other optimization done in this
commit. Like, possible to accumulate send 2 command packets in single
send(), and it is trivial to do,  but ommited here on reasons of clarity
2016-07-09 20:21:44 +00:00
Georg Richter
0ab2af5ff3 Windows build fix: cast to char * instead of using void* 2016-07-08 14:09:32 +02:00
Georg Richter
ecf26f7e6f Added support for indicator variables
Fixed windows compilation bug
2016-07-08 12:51:26 +02:00
Georg Richter
8e44202e74 Initial implementation for bulk operations/array binding in prepared statements 2016-07-01 10:10:11 +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
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
Georg Richter
9d51d5e3d6 Fix for CONC-179:
- Fixed offset for warning_count in ps protocol
- Added new api function mysql_stmt_warning_count
- For backwards compatibility we also update the value for
  mysql_warning_count function
2016-05-15 12:04:10 +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
b6d3af1bfc Fix for CONC-168: string conversion of timestamps is broken
When converting datetime with microseconds to string (binary protocol) number of decimal
places was ignored. Thanks to Patrick Huesmann for providing a fix.
2016-03-24 07:17:22 +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
89fce625b5 Build fixes for 10.2 integration 2016-03-01 13:54:33 +01:00
Vladislav Vaintroub
3401ccac61 fix build for c89 compilers 2016-02-25 20:44:06 +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
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
4ca933bb81 Global cleanup:
removed global locks
  removed dead code and files
  removed dbug
2016-02-08 18:43:02 +01:00