mariadb/storage/connect
Olivier Bertrand dc3a693b70 - Inline MakePtr and MakeOff with OFFSET as size_t
Also add a new member Saved_Size in the Global structure.
  modified:   storage/connect/global.h
  modified:   storage/connect/plugutil.cpp
  modified:   storage/connect/user_connect.cc
  modified:   storage/connect/jsonudf.cpp

- Add session variables json_all_path and default_depth
  modified:   storage/connect/ha_connect.cc
  modified:   storage/connect/mongo.cpp
  modified:   storage/connect/tabjson.cpp
  modified:   storage/connect/tabxml.cpp

- ADD column options JPATH and XPATH
  Work as FIELD_FORMAT but are more readable
  modified:   storage/connect/ha_connect.cc
  modified:   storage/connect/ha_connect.h
  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

- Handle negative numbes in the option list
  modified:   storage/connect/ha_connect.cc

- Fix Json parse that could crash the server.
  Was because it could use THROW out of the TRY block.
  Also handle all error by THROW.
  It is now done by a new class JSON.
  modified:   storage/connect/json.cpp
  modified:   storage/connect/json.h

- Add a new UDF function jfile_translate.
  It translate a Json file to pretty = 0.
  Fast because it does not a real parse of the file.
  modified:   storage/connect/jsonudf.cpp
  modified:   storage/connect/jsonudf.h

- Add a now options JSIZE and STRINGIFY to Json tables.
  STRINGIFY makes Objects or Arrays to be returned by their
  json representation instead of by their concatenated values.
  JSIZE allows to specify the LRECL (was 256) defaults to 1024.
  Also fix a bug about locating the sub-table by its path.
  modified:   storage/connect/tabjson.cpp
  modified:   storage/connect/tabjson.h
2020-10-18 17:20:44 +02:00
..
mysql-test/connect - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
.gitignore git90.msg + git91.msg 2016-06-02 23:36:19 +02:00
ApacheInterface.java - Fix MDEV-11234. Escape quoting character. Should be doubled. 2016-11-06 14:57:27 +01:00
array.cpp Merge remote-tracking branch 'connect/10.1' into 10.1 2019-10-30 13:55:35 +01:00
array.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
blkfil.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
blkfil.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
block.h In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
catalog.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
checklvl.h Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
Client.java Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
CMakeLists.txt - Fix MDEV-21450 2020-01-12 19:59:07 +01:00
cmgfam.cpp Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
cmgfam.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
cmgoconn.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
cmgoconn.h Squashed commit of the following: 2017-10-26 12:48:13 +03:00
colblk.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
colblk.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
connect.cc - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
connect.h These changed were made after pulling 10.2.30 from origin 2019-11-24 22:58:55 +01:00
csort.cpp imporve clang build 2019-06-25 13:21:36 +03:00
csort.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
domdoc.cpp Squashed commit of connect/10.0: 2018-10-28 10:41:31 +01:00
domdoc.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
encas.h - Remove gcc warning (no previous declaration of msglang) 2014-11-16 01:16:51 +01:00
engmsg.h Make source the same as branch 10.2 2017-08-06 21:33:52 +02:00
enids.h - Implement the NEWMSG and XMSG methods 2014-11-15 18:28:24 +01:00
filamap.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
filamap.h Fix some XML table type bugs: 2016-12-23 16:58:32 +01:00
filamdbf.cpp Fix compile error for KVM. Modified filamdbf.cpp 2020-07-13 20:02:51 +02:00
filamdbf.h - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
filamfix.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
filamfix.h - Add a new CONNECT global variable allowing to tell whether or not 2014-08-22 17:30:22 +02:00
filamgz.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
filamgz.h Commit changes made for version 10.1 2017-01-17 19:39:49 +01:00
filamtxt.cpp Squashed commit of connect/10.0: 2018-10-28 10:41:31 +01:00
filamtxt.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
filamvct.cpp - Fix MDEV-15793: Server crash in PlugCloseFile with sql_mode='' 2019-03-25 17:36:35 +01:00
filamvct.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
filamzip.cpp - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
filamzip.h - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
filter.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
filter.h CONNECT compilation failure 2019-04-26 20:50:31 +02:00
fmdlex.c Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
frcas.h - Remove gcc warning (no previous declaration of msglang) 2014-11-16 01:16:51 +01:00
frids.h - Implement the NEWMSG and XMSG methods 2014-11-15 18:28:24 +01:00
frmsg.h - Remove gcc warning (no previous declaration of msglang) 2014-11-16 01:16:51 +01:00
frmsg1.h
frmsg2.h
global.h - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
ha_connect.cc - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
ha_connect.h - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
inihandl.cpp fix clang warning 2019-10-03 17:45:36 +03:00
inihandl.h
ioapi.c Fix wrong value of JSON column 2017-05-11 21:57:21 +02:00
ioapi.h Fix wrong value of JSON column 2017-05-11 21:57:21 +02:00
javaconn.cpp - Fix MDEV-15793: Server crash in PlugCloseFile with sql_mode='' 2019-03-25 17:36:35 +01:00
javaconn.h Squashed commit of connect/10.0: 2018-10-28 10:41:31 +01:00
JavaWrappers.jar Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
jdbccat.h Squashed commit of the following: 2017-10-26 12:48:13 +03:00
JdbcInterface.java Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
jdbconn.cpp Some small changes. 2019-10-16 17:40:49 +02:00
jdbconn.h Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
jmgfam.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
jmgfam.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
jmgoconn.cpp In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
jmgoconn.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
json.cpp - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
json.h - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
jsonudf.cpp - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
jsonudf.h - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
libdoc.cpp In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
libdoc.h
macutil.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
macutil.h Commit changes pulled from ob-10.0 2015-06-02 10:34:51 +02:00
maputil.cpp MDEV-9617 solaris sparc build fails on 10.0 2016-04-24 18:15:20 +02:00
maputil.h - Set connection charset before calling mysql_real_connect for MYSQL 2015-01-06 10:18:04 +01:00
MariadbInterface.java All changes made on 10.1 for last 11 commits 2016-07-14 20:12:22 +02:00
messages.h
mini-global.h In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
mongo.cpp - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
mongo.h - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
Mongo2Interface.java Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
Mongo3Interface.java Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
msgid.h Make source the same as branch 10.2 2017-08-06 21:33:52 +02:00
mycat.cc ===================================================================== 2019-11-16 14:59:54 +01:00
mycat.h ===================================================================== 2019-11-16 14:59:54 +01:00
myconn.cpp These changed were made after pulling 10.2.30 from origin 2019-11-21 16:27:50 +01:00
myconn.h - Possibly fix MDEV-10179 Reset remote tables when re-opening 2016-06-13 14:28:02 +02:00
MysqlInterface.java All changes made on 10.1 for last 11 commits 2016-07-14 20:12:22 +02:00
myutil.cpp Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
myutil.h - Make possible to allocate work space larger than 4GB 2020-10-01 19:18:26 +02:00
noconst.c Merge connect/10.0 into 10.0 2017-08-01 11:39:10 +03:00
odbccat.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
odbconn.cpp imporve clang build 2019-06-25 13:21:36 +03:00
odbconn.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
OracleInterface.java All changes made on 10.1 for last 11 commits 2016-07-14 20:12:22 +02:00
os.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
osutil.c Make source the same as branch 10.2 2017-08-06 21:33:52 +02:00
osutil.h In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
plgcnx.h Fix spelling: occurred, execute, which etc 2016-03-04 02:09:37 +02:00
plgdbsem.h ===================================================================== 2019-11-16 14:59:54 +01:00
plgdbutl.cpp - Make possible to allocate work space larger than 4GB 2020-10-01 19:18:26 +02:00
plgodbc.h
plgxml.cpp - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
plgxml.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
plugutil.cpp - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
PostgresqlInterface.java Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
preparse.h Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
rcmsg.c Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
rcmsg.h Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
reldef.cpp Fix reldef.cpp (wrong flag for catalog columns) 2019-12-04 15:20:04 +01:00
reldef.h ===================================================================== 2019-11-16 14:59:54 +01:00
resource.h - Implement the NEWMSG and XMSG methods 2014-11-15 18:28:24 +01:00
rest.def In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
restget.cpp Make restGetFile extern C 2019-12-03 18:06:05 +01:00
tabcmg.cpp - Fix MDEV-22571 and MDEV-22572. Allow multiple ZIP table 2020-05-19 00:05:56 +02:00
tabcmg.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
tabcol.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
tabcol.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
tabdos.cpp - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
tabdos.h - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
tabext.cpp Squashed commit of connect/10.0: 2019-04-26 16:49:25 +02:00
tabext.h Squashed commit of connect/10.0: 2019-04-26 16:49:25 +02:00
tabfix.cpp ===================================================================== 2019-11-16 14:59:54 +01:00
tabfix.h - Fix MDEV-22561 Unable to access DBF inside a ZIP archive 2020-07-13 16:30:57 +02:00
tabfmt.cpp ===================================================================== 2019-11-16 14:59:54 +01:00
tabfmt.h Squashed commit of connect/10.0: 2019-01-25 10:06:16 +01:00
tabjdbc.cpp In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
tabjdbc.h Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
tabjmg.cpp Squashed commit of connect/10.0: 2018-10-28 10:41:31 +01:00
tabjmg.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
tabjson.cpp - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
tabjson.h - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
table.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
tabmac.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
tabmac.h All changes made on 10.1 2017-02-16 18:01:48 +01:00
tabmul.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
tabmul.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
tabmysql.cpp ===================================================================== 2019-11-16 14:59:54 +01:00
tabmysql.h - Remove warning on not used tabtyp variable in connect_assisted_discovery 2018-02-25 14:31:28 +01:00
taboccur.cpp All changes made on 10.1 2017-02-16 18:01:48 +01:00
taboccur.h
tabodbc.cpp Some small changes. 2019-10-16 17:40:49 +02:00
tabodbc.h Merge connect/10.0 into 10.0 2017-09-19 02:05:11 +03:00
tabpivot.cpp Squashed commit of connect/10.0: 2018-10-28 10:41:31 +01:00
tabpivot.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
tabrest.cpp - Make possible to allocate work space larger than 4GB 2020-10-01 19:18:26 +02:00
tabrest.h Make restGetFile extern C 2019-12-03 18:06:05 +01:00
tabsys.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
tabsys.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
tabtbl.cpp In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
tabtbl.h Squashed commit of connect/10.0: 2018-01-24 16:12:52 +02:00
tabutil.cpp ===================================================================== 2019-11-16 14:59:54 +01:00
tabutil.h ===================================================================== 2019-11-16 14:59:54 +01:00
tabvct.cpp ===================================================================== 2019-11-16 14:59:54 +01:00
tabvct.h All changes made on 10.1 2017-02-16 18:01:48 +01:00
tabvir.cpp Make source the same as branch 10.2 2017-08-06 21:33:52 +02:00
tabvir.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
tabwmi.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
tabwmi.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
tabxcl.cpp All changes made on 10.1 2017-02-16 18:01:48 +01:00
tabxcl.h All changes made on 10.1 2017-02-16 18:01:48 +01:00
tabxml.cpp - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
tabxml.h - Fix https://stackoverflow.com/questions/60625778/import-complex-xml-from-multiple-files-in-mariadb/60637429#60637429 2020-03-11 14:52:20 +01:00
tabzip.cpp - Fix MDEV-22571 and MDEV-22572. Allow multiple ZIP table 2020-05-19 00:05:56 +02:00
tabzip.h - Fix MDEV-22571 and MDEV-22572. Allow multiple ZIP table 2020-05-19 00:05:56 +02:00
unzip.c - MDEV-11295: developing handling files contained in ZIP file. 2016-12-12 10:57:19 +01:00
unzip.h - MDEV-11295: developing handling files contained in ZIP file. 2016-12-12 10:57:19 +01:00
user_connect.cc - Inline MakePtr and MakeOff with OFFSET as size_t 2020-10-18 17:20:44 +02:00
user_connect.h In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. 2019-08-24 16:14:24 +02:00
valblk.cpp Merge remote-tracking branch 'connect/10.2' into 10.2 2019-10-30 21:56:35 +01:00
valblk.h Squashed commit of the following: 2017-10-26 12:48:13 +03:00
value.cpp - Use BIN type when charset='binary' 2020-10-05 12:29:51 +02:00
value.h - Use BIN type when charset='binary' 2020-10-05 12:29:51 +02:00
xindex.cpp These changed were made after pulling 10.2.30 from origin 2019-11-21 16:27:50 +01:00
xindex.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
xobject.cpp Squashed commit of connect/10.0: 2018-04-26 14:15:18 +02:00
xobject.h Fix gcc compiler warnings reported by Sergei 2017-05-23 19:35:50 +02:00
xtable.h These changed were made after pulling 10.2.30 from origin 2019-11-24 22:58:55 +01:00
zip.c Fix wrong value of JSON column 2017-05-11 21:57:21 +02:00
zip.h - MDEV-11295: developing handling files contained in ZIP file. 2016-12-12 10:57:19 +01:00