18 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
114b42d0d4 orabug #30134490: apply helpers from util/object.h
- apply MYSQL_XDEVAPI_REGISTER_CLASS
- add and apply new macro MYSQL_XDEVAPI_REGISTER_INTERFACE
- improve and apply macro MYSQL_XDEVAPI_REGISTER_DERIVED_CLASS
2020-04-02 14:50:50 +02: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
24df20a17f orabug #30084593: get rid of vim "decorators"
- remove all function signatures /* {{{ ${function_name}[] */
2019-09-10 18:29:44 +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
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
74b67067f4 copyrights update 2018 => 2019 2019-02-01 22:14:35 +01: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
4ecb215b05 Copyrights year bulk update 2017 => 2018 2018-01-15 14:58:38 +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
Darek Slusarczyk
9f53ae607c WL-10089/10392 DevAPI: Cleanup Drop APIs 0) all drop ops are direct, i.e. are not statement and perform at once without calling ->execute() 1) all drop ops don't throw exception - in case of dropped item doesn't exist print proper warning 2) remove Session.dropTable Session.dropCollection 3) add Schema.dropTable Schema.dropCollection 4) remove obsolete drop ops (DatabaseObject.drop, Schema.drop) 5) add new TC for drop ops / fix existing TCs 6) some small C++ refactorings around modified code 2017-09-23 16:36:19 +02: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
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