1. 14 Nov, 2020 1 commit
  2. 13 Nov, 2020 1 commit
  3. 11 Nov, 2020 2 commits
  4. 08 Nov, 2020 2 commits
  5. 07 Nov, 2020 6 commits
  6. 06 Nov, 2020 1 commit
  7. 05 Nov, 2020 3 commits
  8. 04 Nov, 2020 3 commits
  9. 03 Nov, 2020 2 commits
    • Olivier Bertrand's avatar
      78ccc605
    • Olivier Bertrand's avatar
      - Implementation of the Json BJSON representation. · 28af4212
      Olivier Bertrand authored
        VAL structures replace VALUE classes in binary trees.
        These parsed binary trees are swapped and saved on file
        Swapping is to replace pointers by offsets to make it portable.
        In restoring, class pointers to functions are realloced on place.
        Making BJSON files is done by the new UDF function jfile_bjson.
        modified:   storage/connect/block.h
        modified:   storage/connect/filamtxt.cpp
        modified:   storage/connect/filamtxt.h
        modified:   storage/connect/global.h
        modified:   storage/connect/json.cpp
        modified:   storage/connect/json.h
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/jsonudf.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/value.h
      
      - Make file (record) length and map memory possibly larger than MAX_INT
        modified:   storage/connect/filamap.cpp
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/maputil.cpp
        modified:   storage/connect/maputil.h
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/xindex.cpp
      
      - Make column length as bytes (not characters)
        This when making column definitions
        modified:   storage/connect/ha_connect.cc
      
      - Change the message when making index fails
        modified:   storage/connect/ha_connect.cc
      
      - Update tests and results to reflect recent changes
        modified:   storage/connect/mysql-test/connect/r/alter_xml.result
        modified:   storage/connect/mysql-test/connect/r/alter_xml2.result
        modified:   storage/connect/mysql-test/connect/r/jdbc_oracle.result
        modified:   storage/connect/mysql-test/connect/r/json.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/mongo_java_2.result
        modified:   storage/connect/mysql-test/connect/r/mongo_java_3.result
        modified:   storage/connect/mysql-test/connect/r/odbc_oracle.result
        modified:   storage/connect/mysql-test/connect/r/xml.result
        modified:   storage/connect/mysql-test/connect/r/xml2.result
        modified:   storage/connect/mysql-test/connect/r/xml2_html.result
        modified:   storage/connect/mysql-test/connect/r/xml2_mult.result
        modified:   storage/connect/mysql-test/connect/r/xml2_zip.result
        modified:   storage/connect/mysql-test/connect/r/xml_html.result
        modified:   storage/connect/mysql-test/connect/r/xml_mult.result
        modified:   storage/connect/mysql-test/connect/r/xml_zip.result
        modified:   storage/connect/mysql-test/connect/t/alter_xml.test
        modified:   storage/connect/mysql-test/connect/t/alter_xml2.test
        modified:   storage/connect/mysql-test/connect/t/jdbc_oracle.test
        modified:   storage/connect/mysql-test/connect/t/json.test
        modified:   storage/connect/mysql-test/connect/t/mongo_test.inc
        modified:   storage/connect/mysql-test/connect/t/odbc_oracle.test
        modified:   storage/connect/mysql-test/connect/t/xml.test
        modified:   storage/connect/mysql-test/connect/t/xml2.test
        modified:   storage/connect/mysql-test/connect/t/xml2_html.test
        modified:   storage/connect/mysql-test/connect/t/xml2_mult.test
        modified:   storage/connect/mysql-test/connect/t/xml2_zip.test
        modified:   storage/connect/mysql-test/connect/t/xml_html.test
        modified:   storage/connect/mysql-test/connect/t/xml_mult.test
        modified:   storage/connect/mysql-test/connect/t/xml_zip.test
      
      - Typo
        modified:   storage/connect/value.cpp
      28af4212
  10. 18 Oct, 2020 1 commit
    • Olivier Bertrand's avatar
      - Inline MakePtr and MakeOff with OFFSET as size_t · dc3a693b
      Olivier Bertrand authored
        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
      dc3a693b
  11. 06 Oct, 2020 1 commit
  12. 05 Oct, 2020 2 commits
    • Olivier Bertrand's avatar
      d4138e7e
    • Olivier Bertrand's avatar
      - Use BIN type when charset='binary' · 307258c8
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
      
      - Allow JSON columns to be "binary"
        By setting their type as VARBINAY(132)
        and their name begin with Jbin_
        modified:   storage/connect/json.h
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/value.h
      
      - CHARSET BINARY cannot be used for text columns
        modified:   storage/connect/mysql-test/connect/r/updelx.result
        modified:   storage/connect/mysql-test/connect/t/updelx.test
      307258c8
  13. 03 Oct, 2020 1 commit
  14. 01 Oct, 2020 1 commit
    • Olivier Bertrand's avatar
      - Make possible to allocate work space larger than 4GB · 99ab562a
      Olivier Bertrand authored
        All variables handling sizes that were uint are now size_t.
        The variable connect_work_size is now ulong (was uint);
        Also make Json functiosn to allocate a larger memory (M=9 was 7)
        modified:   storage/connect/global.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/json.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/user_connect.cc
      
      - Fix uninitialised variable (pretty) in Json_File.
        Make Jbin_file accept the same arguments as Json_File ones.
        modified:   storage/connect/jsonudf.cpp
      
      - Change the Level option to Depth (the word currently used)
        (Level being still accepted)
        modified:   storage/connect/mongo.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabxml.cpp
      
      - Suppress 2nd argument default value for MYSQLtoPLG function
        modified:   storage/connect/myutil.h
      
      - Allow REST tables to be create not specifying a file_name
        modified:   storage/connect/tabrest.cpp
      99ab562a
  15. 13 Jul, 2020 2 commits
    • Olivier Bertrand's avatar
      ad0d2424
    • Olivier Bertrand's avatar
      - Fix MDEV-22561 Unable to access DBF inside a ZIP archive · 1e07df99
      Olivier Bertrand authored
        modified:   storage/connect/filamdbf.cpp
        modified:   storage/connect/filamdbf.h
        modified:   storage/connect/filamzip.cpp
        modified:   storage/connect/filamzip.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/plgxml.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabdos.h
        modified:   storage/connect/tabfix.h
      
      - Add/Init Level class member
        modified:   storage/connect/mongo.cpp
        modified:   storage/connect/mongo.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      - Typo
        modified:   storage/connect/connect.cc
      1e07df99
  16. 18 May, 2020 1 commit
  17. 11 Mar, 2020 1 commit
  18. 12 Jan, 2020 1 commit
    • Olivier Bertrand's avatar
      - Fix MDEV-21450 · 8ff3eb41
      Olivier Bertrand authored
        Failed compile when XML table type is not supported.
        Was because XMLDEF was unconditionally called from REST table.
        modified:   storage/connect/tabrest.cpp
      
      - Make cmake less verbose
        modified:   storage/connect/CMakeLists.txt
      
      - Hide Switch_to_definer_security_ctx not defined for 10.1 and 10.0
        modified:   storage/connect/ha_connect.cc
      8ff3eb41
  19. 10 Dec, 2019 1 commit
  20. 04 Dec, 2019 1 commit
  21. 03 Dec, 2019 2 commits
  22. 01 Dec, 2019 1 commit
  23. 30 Nov, 2019 2 commits
  24. 26 Nov, 2019 1 commit
    • Olivier Bertrand's avatar
      - Fix MDEV-13782 · f0da39be
      Olivier Bertrand authored
        Problem with NOT LIKE queries.
        modified:   storage/connect/ha_connect.cc
        modified:   sql/item_cmpfunc.h
      
      - Fix MDEV-21084
        Misusage of strncat could cause buffer overflow.
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/tabcmg.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabrest.cpp
        modified:   storage/connect/tabxml.cpp
      f0da39be