Olivier Bertrand
5f64276fb2
- Fix MDEV-25863 : Replace __WIN__ by _WIN32
...
modified: storage/connect/array.cpp
modified: storage/connect/blkfil.cpp
modified: storage/connect/block.h
modified: storage/connect/bson.cpp
modified: storage/connect/cmgoconn.cpp
modified: storage/connect/colblk.cpp
modified: storage/connect/domdoc.cpp
modified: storage/connect/filamap.cpp
modified: storage/connect/filamdbf.cpp
modified: storage/connect/filamfix.cpp
modified: storage/connect/filamgz.cpp
modified: storage/connect/filamtxt.cpp
modified: storage/connect/filamvct.cpp
modified: storage/connect/filamzip.cpp
modified: storage/connect/filter.cpp
modified: storage/connect/filter.h
modified: storage/connect/fmdlex.c
modified: storage/connect/global.h
modified: storage/connect/ha_connect.cc
modified: storage/connect/javaconn.cpp
modified: storage/connect/javaconn.h
modified: storage/connect/jdbconn.cpp
modified: storage/connect/jmgfam.cpp
modified: storage/connect/json.cpp
modified: storage/connect/macutil.cpp
modified: storage/connect/macutil.h
modified: storage/connect/maputil.cpp
modified: storage/connect/mycat.cc
modified: storage/connect/myconn.cpp
modified: storage/connect/myconn.h
modified: storage/connect/myutil.cpp
modified: storage/connect/odbconn.cpp
modified: storage/connect/odbconn.h
modified: storage/connect/os.h
modified: storage/connect/osutil.c
modified: storage/connect/plgdbsem.h
modified: storage/connect/plgdbutl.cpp
modified: storage/connect/plugutil.cpp
modified: storage/connect/rcmsg.c
modified: storage/connect/reldef.cpp
modified: storage/connect/reldef.h
modified: storage/connect/tabdos.cpp
modified: storage/connect/tabext.cpp
modified: storage/connect/tabfix.cpp
modified: storage/connect/tabfmt.cpp
modified: storage/connect/tabjdbc.cpp
modified: storage/connect/tabmac.cpp
modified: storage/connect/tabmac.h
modified: storage/connect/tabmul.cpp
modified: storage/connect/tabmul.h
modified: storage/connect/tabmysql.cpp
modified: storage/connect/taboccur.cpp
modified: storage/connect/tabodbc.cpp
modified: storage/connect/tabpivot.cpp
modified: storage/connect/tabrest.cpp
modified: storage/connect/tabrest.h
modified: storage/connect/tabsys.cpp
modified: storage/connect/tabtbl.cpp
modified: storage/connect/tabutil.cpp
modified: storage/connect/tabvct.cpp
modified: storage/connect/tabwmi.cpp
modified: storage/connect/tabxcl.cpp
modified: storage/connect/tabxml.cpp
modified: storage/connect/valblk.cpp
modified: storage/connect/value.cpp
modified: storage/connect/xindex.cpp
modified: storage/connect/xindex.h
- Fix Date errors and SSL warnings
modified: storage/connect/mysql-test/connect/r/jdbc.result
modified: storage/connect/mysql-test/connect/r/jdbc_new.result
modified: storage/connect/mysql-test/connect/t/jdbc.test
modified: storage/connect/mysql-test/connect/t/jdbc_new.test
- Update java source files
modified: storage/connect/Mongo2Interface.java
modified: storage/connect/Mongo3Interface.java
added: storage/connect/Client2.java
added: storage/connect/Client3.java
added: storage/connect/TestInsert2.java
added: storage/connect/TestInsert3.java
2021-06-08 17:44:43 +02:00
Olivier Bertrand
be7e41db96
- Mongo defined columns
...
modified: storage/connect/cmgoconn.cpp
modified: storage/connect/cmgoconn.h
- Change default array LIMIT from 10 to 50
modified: storage/connect/ha_connect.cc
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabjson.cpp
modified: storage/connect/tabxml.cpp
2021-05-24 16:56:12 +02:00
Olivier Bertrand
e0edfc277f
- Fix MDEV-25715
...
modified: storage/connect/bsonudf.cpp
modified: storage/connect/jsonudf.cpp
2021-05-18 16:42:19 +02:00
Olivier Bertrand
17533c1ffc
- Put all jar files in the SHARE directory (was PLUGIN)
...
modified: sql/mysqld.h
modified: storage/connect/CMakeLists.txt
modified: storage/connect/javaconn.cpp
modified: storage/connect/mycat.cc
modified: storage/connect/mycat.h
- Get a handled on a not pooled client
This to avoid a .50 delay when closing
modified: storage/connect/cmgoconn.cpp
modified: storage/connect/cmgoconn.h
- Allow FIELD_FORMAT options for DECIMAL type
modified: storage/connect/tabdos.cpp
- Update tests and result to reflect last changes
Also because Oracle password has changed
modified: storage/connect/mysql-test/connect/r/jdbc_oracle.result
modified: storage/connect/mysql-test/connect/r/json_java_2.result
modified: storage/connect/mysql-test/connect/r/json_java_3.result
modified: storage/connect/mysql-test/connect/r/json_mongo_c.result
modified: storage/connect/mysql-test/connect/r/mongo_c.result
modified: storage/connect/mysql-test/connect/r/odbc_oracle.result
modified: storage/connect/mysql-test/connect/t/jdbc_oracle.test
modified: storage/connect/mysql-test/connect/t/odbc_oracle.test
- Typo
modified: storage/connect/reldef.cpp
2021-05-17 19:17:31 +02:00
Olivier Bertrand
5ae67c6d63
- All this concern Json or Mongo tables based on MongoDB collections.
...
- Limit decimals of doubles printed from MongoDB
Done in function Mini for Mongo C Driver and Java Driver
Done in function SerializeValue for Java tables using the J Driver
modified: storage/connect/cmgoconn.cpp
modified: storage/connect/json.cpp
modified: storage/connect/json.h
modified: storage/connect/tabjmg.cpp
- Fix crash when using BSON_TYPE_DECIMAL128
modified: storage/connect/cmgoconn.cpp
- Collection name default to table name
Fix it when creating tables via discovery
modified: storage/connect/ha_connect.cc
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabjson.cpp
2021-05-05 00:31:21 +02:00
Olivier Bertrand
3b5dabeb96
Typo
2021-05-02 11:59:54 +02:00
Olivier Bertrand
2294f9de8d
Fix compile warning as error
2021-05-02 11:03:21 +02:00
Olivier Bertrand
ef0829ef40
- Major update of the json/bson/mongo table types programs.
...
Fix several bugs, chiefly concerning CURL operations.
modified: storage/connect/bson.cpp
modified: storage/connect/cmgfam.cpp
modified: storage/connect/cmgoconn.cpp
modified: storage/connect/cmgoconn.h
modified: storage/connect/colblk.h
modified: storage/connect/ha_connect.cc
modified: storage/connect/jmgfam.cpp
modified: storage/connect/jmgoconn.cpp
modified: storage/connect/jmgoconn.h
modified: storage/connect/json.cpp
modified: storage/connect/json.h
modified: storage/connect/mysql-test/connect/r/bson_mongo_c.result
modified: storage/connect/mysql-test/connect/r/json_mongo_c.result
modified: storage/connect/mysql-test/connect/r/mongo_c.result
modified: storage/connect/mysql-test/connect/r/mongo_java_2.result
modified: storage/connect/mysql-test/connect/r/mongo_java_3.result
modified: storage/connect/mysql-test/connect/std_data/Mongo2.jar
modified: storage/connect/mysql-test/connect/std_data/Mongo3.jar
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabbson.h
modified: storage/connect/tabcmg.cpp
modified: storage/connect/tabcmg.h
modified: storage/connect/tabjmg.cpp
modified: storage/connect/tabjmg.h
modified: storage/connect/tabjson.cpp
modified: storage/connect/tabjson.h
2021-05-01 22:29:38 +02:00
Olivier Bertrand
4df6952ce3
Typo modified: CMakeLists.txt
2021-04-09 16:10:37 +02:00
Olivier Bertrand
36fd94aa5c
Remove add_jar modified: CMakeLists.txt
2021-04-09 15:24:34 +02:00
Olivier Bertrand
46340ad8d1
Fix add_jar modified: CMakeLists.txt
2021-04-09 14:41:50 +02:00
Olivier Bertrand
03f929aea8
Fix install modified: CMakeLists.txt
2021-04-09 11:58:13 +02:00
Olivier Bertrand
bbec4aafda
typo tabrest.cpp
2021-04-08 19:05:11 +02:00
Olivier Bertrand
710e1bac5a
tabrest.cpp
2021-04-08 19:05:10 +02:00
Olivier Bertrand
757aaa3bcc
tabrest.cpp
2021-04-08 19:05:09 +02:00
Olivier Bertrand
e4c23fe2d0
tabrest.cpp
2021-04-08 17:35:21 +02:00
Olivier Bertrand
953c84657b
try to fix tabrest.cpp compile error
2021-04-08 17:35:19 +02:00
Olivier Bertrand
26e5ba4b51
- Fix Linux compile errors
...
modified: storage/connect/tabrest.cpp
modified: storage/connect/CMakeLists.txt
- Fix cmake error
modified: libmariadb/cmake/ConnectorName.cmake
2021-04-08 17:35:17 +02:00
Olivier Bertrand
d1b6cad028
Test tabrest.cpp fix
2021-04-08 17:35:16 +02:00
Olivier Bertrand
c030f4c625
Commit last pull from origin
2021-04-06 12:52:44 +02:00
Olivier Bertrand
28b76afcea
- Fix(?) Linux compile errors
...
modified: storage/connect/tabrest.cpp
modified: storage/connect/CMakeLists.txt
-fix MDEV-24794
modified: storage/connect/valblk.h
2021-04-06 00:10:07 +02:00
Olivier Bertrand
2aefe0bee1
- Fix crash when not specifying the collection for MongoDB
...
modified: storage/connect/cmgoconn.cpp
- Fix(?) Linux compile errors
modified: storage/connect/tabrest.cpp
2021-04-05 18:33:37 +02:00
Olivier Bertrand
caff19ada5
- Copy Mongo2.jar and Mongo3.jar in plugin directory
...
modified: storage/connect/CMakeLists.txt
modified: storage/connect/javaconn.cpp
- Check privileges while creating tables with Discovery
modified: storage/connect/ha_connect.cc
- Calculate LRECL for JSON tables created with Discovery
modified: storage/connect/tabjson.cpp
- Use CreateProcess (Windows) or fork/exec (linux)
to retrieve the result from REST queries
modified: storage/connect/tabrest.cpp
- Typo
modified: storage/connect/jmgoconn.cpp
2021-04-05 17:01:43 +02:00
Olivier Bertrand
e85006e670
- Fix bug making REST table fail using CURL
...
This when the HTTP contains & characters
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabjson.cpp
- Make stringfy option work on only one Json item
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabbson.h
modified: storage/connect/tabjson.cpp
modified: storage/connect/tabjson.h
- Make Json/Bson DATE columns accept JSON date syntax
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabjson.cpp
- Fix bug making REST table default file not being
erased when dropping the table
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabjson.cpp
modified: storage/connect/tabrest.cpp
modified: storage/connect/tabxml.cpp
- Suppress CHAR(36) --> VARCHAR(36) when DEVELOPMENT
This was fixed in MyClient
modified: storage/connect/ha_connect.cc
2021-03-16 23:32:58 +01:00
Olivier Bertrand
801a6d500f
- Add new JPATH features
...
modified: storage/connect/bson.cpp
modified: storage/connect/bsonudf.cpp
modified: storage/connect/bsonudf.h
modified: storage/connect/json.cpp
modified: storage/connect/jsonudf.cpp
modified: storage/connect/jsonudf.h
modified: storage/connect/mysql-test/connect/r/json_udf.result
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabjson.cpp
modified: storage/connect/tabjson.h
2021-02-16 00:31:27 +01:00
Olivier Bertrand
e7d9c1d498
Fix connect engine ppc64 fail
2021-02-05 18:34:06 +01:00
Olivier Bertrand
d788225b66
Fix bson_object_grp inverted args. Modified: storage/connect/bsonudf.cpp and bson_udf.result
2021-02-05 18:07:43 +01:00
Olivier Bertrand
ca63004190
- Fix bug causing bnx base wrong after CheckMemory
...
Add negative array indexes starting from the last
modified: storage/connect/bson.cpp
modified: storage/connect/bsonudf.cpp
modified: storage/connect/json.cpp
2021-02-05 11:55:47 +01:00
Olivier Bertrand
dc31627c2d
Fix of connect engine crashes
2021-02-05 11:25:24 +01:00
Oleksandr Byelkin
c04ae0d365
Fix of crashes of connect engine.
...
Use size_t everywhere and remove suspicious expression.
2021-02-05 10:56:05 +01:00
Oleksandr Byelkin
87bf594bc5
Fix of random crashes of connect engine (probably depend on addresses used)-
2021-02-05 10:55:53 +01:00
Oleksandr Byelkin
716b0b44f8
Fix compiler warnings of the new connect engine.
2021-02-05 10:55:40 +01:00
Oleksandr Byelkin
b3cecb7bfc
Revert "Fix of warnings on aarch64 like:"
...
Fixed by the author in other way (char -> short)
This reverts commit 496f7090a8
.
2021-02-02 10:37:54 +01:00
Oleksandr Byelkin
7f7e66147d
Merge remote-tracking branch 'connect/10.2' into 10.2
2021-02-02 10:36:46 +01:00
Olivier Bertrand
571294f954
Fix failed test bson and xml
2021-02-02 00:03:07 +01:00
Olivier Bertrand
c2aecb0575
Fix failed test bson and xml
2021-01-30 12:07:37 +01:00
Olivier Bertrand
7ab30f5d95
Update bson_get_item modified: bsonudf.cpp
2021-01-29 15:45:08 +01:00
Oleksandr Byelkin
9c84852809
fix of warning on windows
2021-01-29 13:40:05 +01:00
Oleksandr Byelkin
496f7090a8
Fix of warnings on aarch64 like:
...
bson.cpp:1775:3: error: case label value is less than minimum value for type [-Werror]
case TYPE_NULL:
bson.cpp:1776:7: error: statement will never be executed [-Werror=switch-unreachable]
b = true;
2021-01-29 12:35:17 +01:00
Oleksandr Byelkin
40868c4765
fix warnings returned by gcc v10.0
2021-01-29 12:04:09 +01:00
Oleksandr Byelkin
8b4d92aa4c
Merge remote-tracking branch 'connect/10.2' 10.2
2021-01-29 12:03:11 +01:00
Olivier Bertrand
848a1a613c
Fix decimal problems in bson udf's
2021-01-28 19:54:24 +01:00
Olivier Bertrand
7edd4294be
- Continue BSON development
...
modified: storage/connect/bson.cpp
modified: storage/connect/bson.h
modified: storage/connect/bsonudf.cpp
modified: storage/connect/bsonudf.h
modified: storage/connect/ha_connect.cc
modified: storage/connect/jsonudf.cpp
modified: storage/connect/mysql-test/connect/r/bson.result
modified: storage/connect/mysql-test/connect/r/bson_udf.result
modified: storage/connect/mysql-test/connect/t/bson_udf.inc
modified: storage/connect/mysql-test/connect/t/bson_udf.test
modified: storage/connect/mysql-test/connect/t/bson_udf2.inc
modified: storage/connect/tabbson.cpp
modified: storage/connect/tabbson.h
2021-01-28 01:02:29 +01:00
Olivier Bertrand
9a07f30ba2
Fix some Json and Bson bugs
2021-01-20 19:19:54 +01:00
Olivier Bertrand
1d627ce47c
Fix failed test
2021-01-13 00:23:08 +01:00
Olivier Bertrand
c9b5e5286b
Fix failed test
2021-01-12 22:28:44 +01:00
Olivier Bertrand
347bce0201
- Remove static linkage to cpprestsdk when it is installed
...
modified: storage/connect/CMakeLists.txt
- Continue BSON development
modified: storage/connect/bson.cpp
modified: storage/connect/bson.h
modified: storage/connect/bsonudf.cpp
modified: storage/connect/bsonudf.h
added: storage/connect/mysql-test/connect/r/bson_udf.result
added: storage/connect/mysql-test/connect/t/bson_udf.inc
added: storage/connect/mysql-test/connect/t/bson_udf.test
added: storage/connect/mysql-test/connect/t/bson_udf2.inc
2021-01-12 18:25:41 +01:00
Olivier Bertrand
70cfeb9bc9
Re-include BSON into CMakeLists.txt
2021-01-10 02:23:11 +01:00
Olivier Bertrand
251a55dcb4
Remove changes to CMakeLists.txt that cause compile error
2021-01-10 01:05:38 +01:00
Olivier Bertrand
02bb11709d
- add the test on REST
2021-01-10 00:14:37 +01:00