26 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 dee08675cc orabug #30134451: mysqlndx replace raw zval with improved zvalue where possible
refactorings in:
- session, statement, sql result iterator
- remove function to_zend_string and all related
2020-08-27 17:29:21 +02:00
Darek Slusarczyk 43ad77893d orabug #31414039: mysqlndx apply std::string_view, remove MYSQLND_CSTRING
last fixes, polishing code before CR
2020-07-23 16:38:27 +02:00
Darek Slusarczyk ce6fc5e2d8 orabug #31414039: mysqlndx apply std::string_view, remove MYSQLND_CSTRING
- add util::param_string for input PHP arguments
- remove custom util::string_view class
- add new alias util::string_view equal to std::string_view from C++17
- replace all occurrences of MYSQLND_CSTRING with new util::string_view
- replace all occurrences of MYSQLND_STRING with util::string
- few other fixes and refactorings
2020-07-22 14:42:12 +02:00
Darek Slusarczyk 6fdbacc779 orabug #31414039: mysqlndx apply std::string_view, remove MYSQLND_CSTRING
- convert MYSQLND_CSTRING => util::string_view
- refactoring of xmysqlnd_warning_list
2020-05-28 21:35:55 +02:00
Darek Slusarczyk c992236677 WL#13014 DevAPI: Add schema validation to create collection
- modify schema.createCollection to support schema validation (optional input parameter)
- add schema.modifyCollection
- support both strict and off level of validation
- support empty validation schema
- add tests
2020-02-12 12:43:06 +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 b7f602be6c orabug #30084593: get rid of vim "decorators"
- remove all function signatures /* {{{ ${function_name} */
2019-09-10 18:19:59 +02:00
Darek Slusarczyk 0bd2749d8b orabug #30093227: mysql_xdevapi\CollectionFind::fields() path fails when ends in number
- in case of atypical identifier (number, beginning with character other than letter, etc.) there have to be applied backticks '`' for aliasing expressions, e.g.
before:
$.tree."100" AS 100
currently:
$.tree."100" AS `100`
2019-08-03 13:06:57 +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 ef47da7ed9 WL#12732: DevAPI: Specify TLS ciphers to be used by a client or session
- update tests according to current spec
- improve error messages
- add some string utils
2019-04-27 16:41:57 +02:00
Darek Slusarczyk 23ac5a6019 WL#12732: DevAPI: Specify TLS ciphers to be used by a client or session
- remove default ciphers, as we work with mysql 8.x or newer we rely only on user explicit setting
- improve error messages - in case user tries to setup secure connection, and it fails, then check whether openssl is available, if not then generate proper message
2019-04-03 12:35:13 +02:00
Darek Slusarczyk 4a445064c7 WL#12732: DevAPI: Specify TLS ciphers to be used by a client or session
- improve utils / error messages
2019-03-25 20:53:11 +01:00
Darek Slusarczyk 74b67067f4 copyrights update 2018 => 2019 2019-02-01 22:14:35 +01:00
Darek Slusarczyk f602dc3259 WL#12189 : Implement connect timeout
- new option in uri: 'connect-timeout' to set connection timeout (only connection, not subsequent operations)
- if it is not passed, then assume default timeout (for the moment it is 10sec)
- if it is set to 0, then do not set timeout explicitly (will work under current conditions)
- it has to be integer non-negative number, else warning reported, and connection fails
- new envars supported MYSQLX_TEST_CONNECTION_TIMEOUT, MYSQLX_CONNECTION_TIMEOUT
- TCs added for following timeout connections: default, disabled, elapsed, incorrect timeout, and successful no-timeout
- mysqlnd VIO used to operate on timeouts
2018-07-16 11:58:53 +02:00
Darek Slusarczyk 70142bbbcb fixes for old boost
in older versions of boost (e.g. 1.53.0 which is at the moment still officially
delivered as the newest one package for CentOS7) there is bug in boost::property_tree
it doesn't support strings with custom allocator - somewhere deep in code there is
applied std::string directly with standard allocator
compiler fails at conversion std::string <=> util::string (custom allocator)
in newer versions it is fixed
the oldest version we've successfully tried is 1.59.0
and beginning with that version we apply util::string, while for older one std::string
2018-03-20 19:40:14 +01:00
Darek Slusarczyk e9f2c51b7d WL#11607: DevAPI: Add SHA256_MEMORY support
- Gather_auth_mechanisms changes
- Scrambler classes for mysql41 and sha256_memory (to calc client hash)
- send proper auth data depending on auth mechanism - security fix / routine prepare_auth_data
- unify convention: auth_method => auth_mechanism
2018-03-12 12:18:09 +01:00
Darek Slusarczyk a877ec2001 fixes to build with PHP-master
0) st_mysqlnd_error_info::error_list as zend_llist* vs zend_llist

following 'external' commit:
Revision: 69462bdf4c9dcfef7056be5e075a7545724004b3
Author: Dmitry Stogov <dmitry@zend.com>
Date: 14.11.2017 22:53:51
Message:
Embeded zend_list into st_mysqlnd_error_info, to avoid extra allocation/deallocation.

changes API of mysqlnd, i.e. st_mysqlnd_error_info::error_list from zend_llist* into zend_llist
hence we have few build errors, and has to support st_mysqlnd_error_info::error_list
a) as zend_llist* in PHP-7.1/7.2
b) as zend_llist in PHP-master (in the future 7.3 or newer)

1) Z_IMMUTABLE_P is obsolete

2) IS_CONSTANT is not available

3) bulk change include guards for util/*.h
from
#ifndef MYSQL_XDEVAPI_PHPUTILS_*
into
#ifndef MYSQL_XDEVAPI_UTIL_*

4) clear warnings
2018-02-25 23:14:28 +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 6f3b64274f clear warnings (fixes for win64) 2018-02-02 19:17:11 +01:00
Darek Slusarczyk 7ce632f050 - clear warnings
- enable 'treat warnings as errors'
2018-01-21 07:33:59 +01:00
Darek Slusarczyk c423ed5b02 bulk rename: phputils => util 2018-01-15 13:48:16 +01:00