34 Commits

Author SHA1 Message Date
Darek Slusarczyk
a4406f9f59 Follow PHP practice and remove yearly range from copyright notice 2021-01-22 18:13:08 +01:00
Darek Slusarczyk
c4930e0a02 Follow PHP practice and remove yearly range from copyright notice 2021-01-22 16:31:33 +01:00
Darek Slusarczyk
0bd71fe407 copyrights update 2019 => 2020 2019-11-06 12:29:29 +01:00
Darek Slusarczyk
17bb0a23ca orabug #30084593: get rid of vim "decorators"
- remove all routine closing signatures /* }}} */
2019-09-10 19:06:25 +02:00
Darek Slusarczyk
1248e8e2ac orabug #30084593: get rid of vim "decorators"
- remove all function signatures /* {{{ ${function_name} ?*/
2019-09-10 18:59:15 +02:00
Darek Slusarczyk
b7f602be6c orabug #30084593: get rid of vim "decorators"
- remove all function signatures /* {{{ ${function_name} */
2019-09-10 18:19:59 +02:00
Darek Slusarczyk
86746e64b8 Merge remote-tracking branch 'remotes/origin/orabug-30088118-clean-xsession-leavings' into wl-12683-add-overlaps-not-overlaps-as-operator
# Conflicts:
#	mysqlx_x_session.cc
#	mysqlx_x_session.h
2019-07-24 18:26:05 +02:00
Darek Slusarczyk
f14f5a2ec9 orabug #30088118: clean up XSession leavings
- rename mysql_xdevapi__getXSession => mysql_xdevapi_getSession, and move to mysqlx_session.cc
- then remove mysqlx_x_session.* files (class XSession is obsolete)

the only sessions objects we create && use are of class "Session" from mysqlx_session.cc

related WLs:
WL#10309: DevAPI: Remove XSession, rename NodeSession to Session
WL#10394: Remove concept of NodeSession
2019-07-24 18:06:03 +02:00
Darek Slusarczyk
921771f069 orabug #30084593: get rid of vim "decorators"
- remove all footers with vim params, similarly as PHP devs removed it in PHP-7.4
2019-07-23 22:29:44 +02:00
Darek Slusarczyk
de3ad97ebd v8.0.16 - version number updated
rollback some changes
- MYSQL_XDEVAPI_VERSION => PHP_MYSQL_XDEVAPI_VERSION
- XMYSQLND_VERSION => PHP_XMYSQLND_VERSION
2019-03-07 19:37:51 +01:00
Darek Slusarczyk
1d38275445 prepare src for release 8.0.16
- update version number
- add PHP constant MYSQL_XDEVAPI_VERSION_ID (version as long)
- PHP_MYSQL_XDEVAPI_VERSION => MYSQL_XDEVAPI_VERSION, and few other tiny changes
2019-03-07 17:13:45 +01:00
Darek Slusarczyk
74b67067f4 copyrights update 2018 => 2019 2019-02-01 22:14:35 +01:00
Darek Slusarczyk
866eb7496c WL#11956 Implement connection pooling for xprotocol
- mysqlx devapi::Session support pooling at connection close + some refactorings
- session reset
- util::fetch_data_object add support for fetching data object from various types
2018-09-19 00:49:22 +02:00
Darek Slusarczyk
5bbd65a672 WL#11956 Implement connection pooling for xprotocol
naive implementation:
- mysql_xdevapi\getClient function added
- parser for client options (passed as JSON string)
- auxiliary verify_connection_string function added to check correctness of Uri
- permanently allocable C++ classes added: Connection_pool, Client_state, Client_state_manager (singleton)
- custom allocable PHP class added: mysql_xdevapi\Client plus its data struct Client_object_data
- cleanup_clients() function added, and called from MSHUTDOWN
2018-08-29 17:16:06 +02:00
Darek Slusarczyk
976cbcb46c - gather all mysqlnd headers in one mysqlnd_api.h header
- clear warnings for msvc /W4 level
- add MYSQLX_* macros to overwrite some ZEND_ macros to clear/suppress above warnings
- overwrite some mysqlnd DBG_ macros to clear/suppress above warnings
- UNUSED* macros for unreferenced variables
2018-06-23 19:23:09 +02:00
Darek Slusarczyk
2b79e32133 WL#11947 add zend_parse_method_parameters wrapper to check correctness of arglists
- fix arglists for functions
2018-04-23 20:00:22 +02:00
Darek Slusarczyk
f33aa773c8 clean up before GA
- phpinfo: merge obsolete partition to 'xmysqlnd' and 'mysqlx' parts into one 'mysql_xdevapi'
- remove unnecessary stuff from phpinfo
- version number 8.0.4 => 8.0.11
- fix module name
- add 'ext/hash' dependency in code
- update package.xml
2018-03-20 19:37:33 +01:00
Filip Janiszewski
1b15139cfa WL11674: Cleaning up refcounters and Session objects. 2 2018-02-23 18:24:25 +01:00
Filip Janiszewski
52a5577f4d Revert "WL11674: Cleaning up refcounters and Session objects"
This reverts commit df6aa7c19b.
2018-02-23 16:18:22 +01:00
Filip Janiszewski
df6aa7c19b WL11674: Cleaning up refcounters and Session objects 2018-02-23 08:50:05 +01:00
Darek Slusarczyk
7ce632f050 - clear warnings
- enable 'treat warnings as errors'
2018-01-21 07:33:59 +01:00
Darek Slusarczyk
a3117a72df ssl clean up 2018-01-17 21:41:04 +01:00
Darek Slusarczyk
4ecb215b05 Copyrights year bulk update 2017 => 2018 2018-01-15 14:58:38 +01:00
Filip
1c019fced5 Removing session config api 2017-11-10 15:21:23 +01:00
Darek Slusarczyk
59e11f9a3a NULL => nullptr 2017-10-30 19:39:10 +01:00
Darek Slusarczyk
6776ba84dd - php_api.h added to cover all tweaks for <php.h> (#undefs)
- in all sources #include "php_api.h" instead of <php.h>
- #undef add_method - it comes from
./Zend/zend_API.h : 560
#define add_method(arg, key, method)	add_assoc_function((arg), (key), (method))
- and conflicts with protobufs:
a) linux:
/usr/local/include/google/protobuf/descriptor.pb.h:1738:57: error: macro "add_method" requires 3 arguments, but only 1 given
   ::google::protobuf::MethodDescriptorProto* add_method();
b) win:
1>t:\protobuf\3.1.0\x86\debug\include\google\protobuf\descriptor.pb.h(1812): warning C4003: not enough actual parameters for macro 'add_method'
1>t:\protobuf\3.1.0\x86\debug\include\google\protobuf\descriptor.pb.h(1812): error C2059: syntax error: '('
2017-10-30 17:56:02 +01:00
Filip Janiszewski
d0d6476aec Minor implementation changes related with minor worklogs 2017-04-06 11:12:31 +02:00
Filip Janiszewski
1b14a2933e MY-235: Configuration handling interface
Feature Implementation.
2017-03-27 11:33:44 +02:00
Darek Slusarczyk
9244c29d8d fix build error on pb2 for Linux
probably a conflict C vs C++, and mismatch with #include <inttypes.h> or #define __STDC_FORMAT_MACROS
solved with std::string :->

connector-php-7.1.0/Zend/zend_long.h:60:28: error: expected ')' before 'PRId64'
 # define ZEND_LONG_FMT "%" PRId64
                            ^
/connector-php-7.1.0/ext/mysql_xdevapi/php_mysqlx.cc:75:30: note: in expansion of macro 'ZEND_LONG_FMT'
  snprintf(buf, sizeof(buf), (ZEND_LONG_FMT), MYSQL_XDEVAPI_G(net_read_timeout));
                              ^
/connector-php-7.1.0/ext/mysql_xdevapi/php_mysqlx.cc:75:80: error: expected ')' before ';' token
  snprintf(buf, sizeof(buf), (ZEND_LONG_FMT), MYSQL_XDEVAPI_G(net_read_timeout));
2017-02-02 02:58:28 +01:00
Darek Slusarczyk
d2effad586 pb2 build fixes unix/win
linux temporary patch
2017-02-02 02:34:06 +01:00
Darek Slusarczyk
a4f0802b25 C++ refactoring
- apply namespaces mysqlx:: devapi | devapi::msg | drv | parser
- PHP_METHOD => MYSQL_XDEVAPI_PHP_METHOD - exception safety for API routines
- swap DONT_ALLOW_NULL / NO_PASS_BY_REF with dont_allow_null / no_pass_by_ref
- Copyright date to 2017
- remove mysqlx_node_base_result obsolete code
- remove unnecessary #include <new>
2017-01-31 19:49:30 +01:00
Darek Slusarczyk
c68216850c remove trailing whitespaces 2017-01-30 14:56:35 +01:00
Darek Slusarczyk
e5a3477e0c make mysql_xdevapi buildable + passing tests after bulk rename to *.cc
- apply custom (also permanent) allocation to devapi (mysqlx_*) and iterators
- apply C++ casts where required
- embrace all C includes in extern "C" scope
- remove unnecessary extern "C"
- remove unnecessary #ifdefs on __cplusplus
- remove some superfluous 'struct' in var declarations
- some small issues with conversions not allowed in C++ (enum <-> int <-> other enum or const vs non-const)
2017-01-30 13:19:02 +01:00
Darek Slusarczyk
2bedcf93ac rename *.c -> *.cc 2017-01-20 08:12:26 +01:00