1. 24 Aug, 2019 1 commit
    • Olivier Bertrand's avatar
      In CONNECT version 1.6.10 NOSQL facility is enhanced by a new way to retrieve NOSQL data. · dd30ba4c
      Olivier Bertrand authored
      In addition to files and Mongo collections, JSON as well as XML and CSV data can be retrieved
      from the net as answers from REST queries. Because it uses and external package (cpprestsdk)
      this is currently available only to MariaDB servers compiled from source.
      
      -- Add the REST support when Microsoft Casablanca package (cpprestsdk) is installed.
      -- Add compile flags needed on Windows /MD or /MDd (debug)
      -- Also include some changes specific to MariaDB 10.3.
        modified:   storage/connect/CMakeLists.txt
      
      -- Add conditional REST support
      -- Added string options HTTP and URI.
      -- Added added internal table type TAB_REST.
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/mycat.h
        modified:   storage/connect/plgdbsem.h
      
      -- Add conditional code based on the preprocessor definition MARIADB
      -- This to be able to use the same code in CONNECT and EOM modules
        modified:   storage/connect/osutil.h
        modified:   storage/connect/tabrest.cpp
      
      -- Add files for the REST OEM module
        added:      storage/connect/mini-global.h
        added:      storage/connect/rest.def
      
      -- Fix MDEV-19648 Variable connect_conv_size doesn't change
      -- Change Variable wrong block parameter from 8169 to 1.
      -- Also change connect_conv_size default value to 1024.
        modified:   storage/connect/ha_connect.cc
      
      -- Fix compilation error when ZIP is not supported
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/tabfmt.cpp
      
      -- Replace PlugSetPath by some concat (crashed on Fedora) + typo
        modified:   storage/connect/reldef.cpp
      
      -- Avoid possible buffer overflow
      -- In particular by the function ShowValue.
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabfmt.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/value.h
      
      -- Add some cast to avoid some compiler warnings
        modified:   storage/connect/filamdbf.cpp
      
      -- Fix some C++ error
        modified:   storage/connect/javaconn.cpp
        modified:   storage/connect/jmgoconn.cpp
        modified:   storage/connect/plugutil.cpp
      
      -- Add some tracing + typo
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/tabjson.cpp
      
      -- Add the xtrc tracing function
        modified:   storage/connect/global.h
        modified:   storage/connect/plugutil.cpp
      
      -- Modify tracing to use xtrc and some typo
        modified:   storage/connect/array.cpp
        modified:   storage/connect/block.h
      
      -- Miscellaneous Typo and warning suppressing changes
        modified:   storage/connect/connect.cpp
        modified:   storage/connect/connect.h
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/inihandl.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/libdoc.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabtbl.cpp
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/user_connect.cc
        modified:   storage/connect/user_connect.h
      
      -- Update failing test results and disbling
        modified:   storage/connect/mysql-test/connect/disabled.def
        modified:   storage/connect/mysql-test/connect/r/dir.result
        modified:   storage/connect/mysql-test/connect/r/grant.result
        modified:   storage/connect/mysql-test/connect/r/jdbc.result
        modified:   storage/connect/mysql-test/connect/r/jdbc_postgresql.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_mult.result
        modified:   storage/connect/mysql-test/connect/r/xml_mult.result
      
      -- Add an option
        modified:   storage/connect/mysql-test/connect/t/grant.test
      dd30ba4c
  2. 25 Mar, 2019 2 commits
  3. 27 Jan, 2019 1 commit
    • Olivier Bertrand's avatar
      - Fix MDEV-18192: CONNECT Engine JDBC not able to issue · e0c147c2
      Olivier Bertrand authored
        simple UPDATE statement from trigger or stored procedure
        modified:   storage/connect/tabext.cpp
        modified:   storage/connect/tabext.h
        modified:   storage/connect/tabjdbc.cpp
      
      - Enable CONNECT tables to have triggers
        Update version number
        modified:   storage/connect/ha_connect.cc
      
      - Make user and password defined in CREATE TABLE have precedence on
        the ones specified in a Federated Server.
        modified:   storage/connect/tabjdbc.cpp
      
      - JSONColumns: Copy locally constant strings to fix error in OEM modules
        modified:   storage/connect/tabjson.cpp
      e0c147c2
  4. 03 Jan, 2019 1 commit
    • Olivier Bertrand's avatar
      - Fix a few bug mainly concerning discovery and call from OEM · 261e9a8a
      Olivier Bertrand authored
        (and prepare new table types)
      
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/tabxml.h
      
      - Fix wrong line estimate
        modified:   storage/connect/mysql-test/connect/r/part_table.result
        modified:   storage/connect/mysql-test/connect/t/part_table.test
      261e9a8a
  5. 04 Dec, 2018 1 commit
  6. 01 Dec, 2018 1 commit
    • Olivier Bertrand's avatar
      - Make PlugSubAlloc to be exportable · 0fb92ddd
      Olivier Bertrand authored
        Suppress unused parameter from PlugSubSet
        modified:   storage/connect/global.h
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/user_connect.cc
      
      - Fix a bug making column catalog XML tables fail
        modified:   storage/connect/tabxml.cpp
      
      - Comment out wrong message
        modified:   storage/connect/ha_connect.cc
      
      - Update error message when sorting an ODBC table fails
        modified:   storage/connect/tabodbc.cpp
      
      - Add error message when gettting an address
        from an OEM fails.
        modified:   storage/connect/reldef.cpp
      
      - Make some modifications useful for OEM module writting
        Export discovery functions for CSV, JDBC and XML
        Remove unuseful include from tabjson.h
        Move TDBXML::data_charset function from header file to source
        modified:   storage/connect/tabfmt.h
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/tabxml.h
      
      - Update test result
        modified:   storage/connect/mysql-test/connect/r/jdbc_oracle.result
      0fb92ddd
  7. 11 Oct, 2018 1 commit
    • Olivier Bertrand's avatar
      - Implement the CHECK TABLE statement and accept REPAIR and ANALYZE · 5d6daa6f
      Olivier Bertrand authored
        modified:   storage/connect/connect.cc
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
        modified:   storage/connect/tabjdbc.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabodbc.cpp
      
      - MDEV-17212: Test if NumResultCols is implemented by the data source
        modified:   storage/connect/odbconn.cpp
      
      - Change error type in Optimize
        modified:   storage/connect/ha_connect.cc
      
      - Update version date
        modified:   storage/connect/ha_connect.cc
      
      - Fix truncating error messages on first unrecognized latin1 character
        modified:   storage/connect/ha_connect.cc
      
      - Fix MDEV-17343
        Reject multi-table UPDATE/DELETE commands that crash on some systems
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/tabext.cpp
      
      - Try fix some failing tests
        modified:   storage/connect/mysql-test/connect/disabled.def
        modified:   storage/connect/mysql-test/connect/r/vcol.result
        modified:   storage/connect/mysql-test/connect/t/vcol.test
        modified:   storage/connect/mysql-test/connect/r/jdbc.result
        modified:   storage/connect/mysql-test/connect/r/jdbc_postgresql.result
        modified:   storage/connect/mysql-test/connect/r/mysql_exec.result
        modified:   storage/connect/mysql-test/connect/r/odbc_postgresql.result
      
      - Typo
        modified:   storage/connect/global.h
      5d6daa6f
  8. 08 Aug, 2018 1 commit
  9. 07 Aug, 2018 1 commit
    • Olivier Bertrand's avatar
      - Fix MDEV-16672 Connect: Warnings with 10.0 · 040e7de6
      Olivier Bertrand authored
        filamtxt.cpp: DOSFAM::RenameTempFile: Change sprintf to snprintf.
        filamvct.cpp: VECFAM::RenameTempFile: Change sprintf to snprintf.
        javaconn.cpp:
          Add JAVAConn::GetUTFString function.
          Use it instead of env->GetStringUTFChars.
          Fix wrong identation.
        javaconn.h: Add GetUTFString declaration.
        jdbconn.cpp:
          Use GetUTFString function instead of env->GetStringUTFChars.
        jmgoconn.cpp:
          Use GetUTFString function instead of env->GetStringUTFChars.
          Fix wrong identation.
        jsonudf.cpp: change 139 to BMX line 4631.
        tabjmg.cpp:
          Add ReleaseStringUTF.
          Fix wrong identation.
        tabpivot.cpp: Fix wrong identation.
        tabutil.cpp: TDBPRX::GetSubTable: Change sprintf to snprintf.
        modified:   storage/connect/filamtxt.cpp
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/javaconn.cpp
        modified:   storage/connect/javaconn.h
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/jmgoconn.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabjmg.cpp
        modified:   storage/connect/tabpivot.cpp
        modified:   storage/connect/tabutil.cpp
      
      - Fix MDEV-16895 CONNECT engine's get_error_message can cause buffer
                       overflow and server crash with long queries
        ha_connect_cc: Update version.
          get_error_message: Remove charset conversion.
        modified:   storage/connect/ha_connect.cc
      
      - Fix a server crash on inserting bigint to a JDBC table
        JDBConn::SetUUID:
          Suppress check on ctyp that causes a server crash because ctyp
          can be negative and this triggers an DEBUG_ASSERT on return.
        modified:   storage/connect/jdbconn.cpp
      
      - Delete an assert(qrp) from JCATPARM *AllocCatInfo that is called with
        qrp=NULL from JDBConn::SetUUID. Also delete a clone of this function
        that was duplicated in javaconn.cpp.
        modified:   storage/connect/javaconn.cpp
        modified:   storage/connect/jdbconn.cpp
      
      - Update some disabled tests and results to avoid failure
        modified:   storage/connect/mysql-test/connect/r/jdbc.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/mongo_java_2.result
        modified:   storage/connect/mysql-test/connect/r/mongo_java_3.result
        modified:   storage/connect/mysql-test/connect/t/json_java_2.test
        modified:   storage/connect/mysql-test/connect/t/json_java_3.test
        modified:   storage/connect/mysql-test/connect/t/mongo_java_2.test
        modified:   storage/connect/mysql-test/connect/t/mongo_java_3.test
      040e7de6
  10. 28 Jun, 2018 1 commit
  11. 07 May, 2018 1 commit
    • Olivier Bertrand's avatar
      - Fix MDEV-15735 CONNECT [filamtxt.cpp:429]: Suspicious condition · 762111ea
      Olivier Bertrand authored
        modified:   storage/connect/filamtxt.cpp
      
      - Fix compiler warnings
        modified:   storage/connect/domdoc.cpp
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/json.h
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabext.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      - Miscelleanous from 10.3
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/user_connect.cc
      762111ea
  12. 27 Mar, 2018 1 commit
  13. 14 Mar, 2018 1 commit
    • Olivier Bertrand's avatar
      - Fix MDEV-15429 CONNECT engine JDBC handling Postgresql UUID type · 46defc43
      Olivier Bertrand authored
        Also handle Postgresql sending type VARCHAR for TEXT column and
        setting length to b x7FFFFFF when the length is unknown.
        modified:   storage/connect/Client.java
        modified:   storage/connect/JavaWrappers.jar
        modified:   storage/connect/JdbcInterface.java
        modified:   storage/connect/PostgresqlInterface.java
        modified:   storage/connect/global.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/jdbconn.h
        modified:   storage/connect/mysql-test/connect/r/jdbc_postgresql.result
        modified:   storage/connect/mysql-test/connect/t/jdbc_postgresql.test
        modified:   storage/connect/mysql-test/connect/t/jdbconn.inc
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/tabjdbc.cpp
        modified:   storage/connect/tabjdbc.h
        added:      storage/connect/mysql-test/connect/std_data/JavaWrappers.jar
      46defc43
  14. 25 Feb, 2018 1 commit
    • Olivier Bertrand's avatar
      - Remove warning on not used tabtyp variable in connect_assisted_discovery · ed5e84ed
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
      
      - Fix a bug causing CONNECT to loop when expanding a JSON column
        when the expanded column value is null or void array.
      - Adding the FullArray option to JSON tables.
      - Skipping expanded JSON lines when the expanded column value is null.
        modified:   storage/connect/connect.cc
        modified:   storage/connect/tabdos.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      - Fix MDEV-13353 No file privilege for ODBC, JDBC, MONGO, MAC, WMI file types.
        modified:   storage/connect/ha_connect.cc
      
      - Make some Json UDFs  to accept a non JSON item as 1st parameter.
        modified:   storage/connect/json.cpp
        modified:   storage/connect/json.h
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/jsonudf.h
      
      - Update Json UDF tests to cope with above changes.
        modified:   storage/connect/mysql-test/connect/r/json_udf.result
        modified:   storage/connect/mysql-test/connect/r/json_udf_bin.result
        modified:   storage/connect/mysql-test/connect/r/vcol.result
        modified:   storage/connect/mysql-test/connect/t/json_udf.test
        modified:   storage/connect/mysql-test/connect/t/vcol.test
      
      - Fix some compiler warning treated as error
        PlugSubAlloc no more exported because it does throw.
        modified:   storage/connect/global.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      - Other files modified (?) when going back to wrong merge
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/array.cpp
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/connect.cc
        modified:   storage/connect/csort.cpp
        modified:   storage/connect/domdoc.cpp
        modified:   storage/connect/filamap.cpp
        modified:   storage/connect/filamgz.cpp
        modified:   storage/connect/filamtxt.cpp
        modified:   storage/connect/filamzip.cpp
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/fmdlex.c
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/macutil.cpp
        modified:   storage/connect/myconn.cpp
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/preparse.h
        modified:   storage/connect/rcmsg.c
        modified:   storage/connect/rcmsg.h
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabfmt.cpp
        modified:   storage/connect/tabmac.cpp
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabmysql.h
        modified:   storage/connect/tabodbc.cpp
        modified:   storage/connect/tabtbl.cpp
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/xobject.cpp
      ed5e84ed
  15. 16 Feb, 2018 5 commits
  16. 14 Feb, 2018 1 commit
  17. 13 Feb, 2018 3 commits
  18. 10 Feb, 2018 2 commits
  19. 09 Feb, 2018 3 commits
  20. 08 Feb, 2018 8 commits
  21. 07 Feb, 2018 1 commit
  22. 06 Feb, 2018 2 commits
    • Daniel Bartholomew's avatar
      bump the VERSION · b253a0c3
      Daniel Bartholomew authored
      b253a0c3
    • Sergei Golubchik's avatar
      correctly detect unsupported compiler flags · 0c25e58d
      Sergei Golubchik authored
      in gcc `-Wno-unsupported-something` will not be an error or even a warning,
      so cmake will think the flag is supported. But if there's any other
      warning during compilation, for any reason, unknown option will
      be a warning too. Or an error when -Werror, even if that "other warning"
      would not be an error on itself.
      
      So we need to detect whether `-Wno-unsupported-something` is *really*
      supported. Luckily, `-Wunsupported-something` will always fail with an
      error.
      
      So, whenever there's a need to detect if -Wno-something is supported,
      test -Wsomething instead.
      0c25e58d