1. 02 Feb, 2018 1 commit
  2. 31 Jan, 2018 1 commit
  3. 30 Jan, 2018 2 commits
    • Olivier Bertrand's avatar
      - Change the connect_xtrace variable to from int to set · dd07e30c
      Olivier Bertrand authored
        modified:   storage/connect/inihandl.cpp
      dd07e30c
    • Olivier Bertrand's avatar
      - Use delayed load for the MongoDB C Drive on Windows · 5abdd20c
      Olivier Bertrand authored
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/cmgoconn.cpp
        modified:   storage/connect/ha_connect.cc
      
      - Add FORCE to the connect_type_conv enum values
        This will translate binary values to TYPE_STRING
        modified:   storage/connect/checklvl.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/odbconn.cpp
      
      - Change the connect_xtrace variable to from int to set
        modified:   storage/connect/array.cpp
        modified:   storage/connect/blkfil.cpp
        modified:   storage/connect/block.h
        modified:   storage/connect/cmgoconn.cpp
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/connect.cc
        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/global.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/javaconn.cpp
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/jmgfam.cpp
        modified:   storage/connect/jmgoconn.cpp
        modified:   storage/connect/json.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/mongo.cpp
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/myconn.cpp
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/tabcol.cpp
        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/tabjson.cpp
        modified:   storage/connect/table.cpp
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabodbc.cpp
        modified:   storage/connect/tabpivot.cpp
        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/tabxml.cpp
        modified:   storage/connect/user_connect.cc
        modified:   storage/connect/valblk.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/xindex.cpp
      
      - Restore connect_enable_mongo variable (but undocumented)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mycat.cc
        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/tbl_thread.result
        modified:   storage/connect/mysql-test/connect/t/mongo.inc
        modified:   storage/connect/mysql-test/connect/t/mongo_test.inc
        modified:   storage/connect/mysql-test/connect/t/tbl_thread.test
      5abdd20c
  4. 03 Jan, 2018 1 commit
    • Olivier Bertrand's avatar
      - Fix MDEV-9844, MDEV-10179, MDEV-14214 · fc2d7948
      Olivier Bertrand authored
       This is done by removing the tbl table type THREAD option
       that causes a multiple of sporadic bugs.
       This may be temporary depending on whether a real fix is found.
        modified:   storage/connect/mysql-test/connect/disabled.def
        modified:   storage/connect/tabtbl.cpp
        modified:   storage/connect/tabtbl.h
      fc2d7948
  5. 03 Nov, 2017 1 commit
  6. 31 Oct, 2017 3 commits
    • Olivier Bertrand's avatar
      - Change inihandl from c to c++. · 332d9f7b
      Olivier Bertrand authored
        Because it now includes global.h that contains a bool function definition
        that make compile to fail on Linux.
        modified:   storage/connect/CMakeLists.txt
        removed:    storage/connect/inihandl.c
        added:      storage/connect/inihandl.cpp
      332d9f7b
    • Olivier Bertrand's avatar
      646ecb89
    • Olivier Bertrand's avatar
      - Fix MDEV-13925: Actually this fixes SELECT queries when · 3db76c99
      Olivier Bertrand authored
        the WHERE clause have single quote.
        modified:   storage/connect/ha_connect.cc
      
      - Use Windows VirtualAlloc and VirtualFree for the Sarea workspace
        modified:   storage/connect/global.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/user_connect.cc
      3db76c99
  7. 17 Oct, 2017 1 commit
  8. 16 Oct, 2017 1 commit
    • Olivier Bertrand's avatar
      - Fix a bug in TYPVAL<PSZ> compute causing it sometime not to be executed · c83e2a63
      Olivier Bertrand authored
        This was the cause of the bug in CalculateArray
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/value.cpp
      
      - Avoid some compiler warnings
        modified:   storage/connect/mongo.cpp
        modified:   storage/connect/tabjmg.cpp
        modified:   storage/connect/tabtbl.cpp
        modified:   storage/connect/tabutil.cpp
      c83e2a63
  9. 15 Oct, 2017 2 commits
    • Olivier Bertrand's avatar
      - Make another temporary fix for the compiler bug in CalculateArray · 6691d12e
      Olivier Bertrand authored
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabjson.cpp
      6691d12e
    • Olivier Bertrand's avatar
      - Update version number · bcfb5b2d
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
      
      - Include MONGO in all Java enabled distributions
        Mongo will be enabled only for 10.2 and 10.3
        modified:   storage/connect/CMakeLists.txt
      
      - Change JDBC_SUPPORT to JAVA_SUPPORT which also replaces MONGO_SUPPORT
        MONGO_SUPPORT is now just used to enable the MONGO table type
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
        modified:   storage/connect/mongo.cpp
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      - Move MakeSelector function from FILTER to mongo.cpp
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/filter.h
        modified:   storage/connect/cmgoconn.cpp
        modified:   storage/connect/jmgoconn.cpp
        modified:   storage/connect/mongo.cpp
      
      - Do mongo_init only on first use of the MongoDB C Driver
        This will permit to delay load the mongo lib on Windows
        modified:   storage/connect/cmgoconn.cpp
        modified:   storage/connect/cmgoconn.h
        modified:   storage/connect/ha_connect.cc
      
      - Replace NEW_VAR by a test on MYSQL_VERSION_ID
        modified:   storage/connect/ha_connect.cc
      
      - Suppress enable_mongo session variable
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mycat.cc
      
      - Make some function headers identical in .h and .cc file
        (replacing const char* by PCSZ)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
      
      - Change a parameter type from uchar* to const uchar*
        (for ScanRecord and CheckRecord)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
      
      - Changes on LIKE and NOT LIKE does not fix a bug yet
        modified:   storage/connect/ha_connect.cc
      
      - Suppress PIVOT_SUPPORT (PIVOT type is unconditionnal)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mycat.cc
      
      - Change the strz function from inline to static
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
      
      - export the JavaConn class and the MgoColumns and IsNum functions
        modified:   storage/connect/javaconn.h
        modified:   storage/connect/json.h
        modified:   storage/connect/mongo.h
      
      - Fix MDEV-13924
        modified:   storage/connect/jdbconn.cpp
      
      - Make a temporary fix for the compiler bug in CalculateArray
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/tabjson.cpp
      
      - Typo
        modified:   storage/connect/jdbccat.h
        modified:   storage/connect/reldef.h
        modified:   storage/connect/tabext.h
        modified:   storage/connect/tabjmg.cpp
        modified:   storage/connect/tabxml.h
        modified:   storage/connect/valblk.h
        modified:   storage/connect/value.h
        modified:   storage/connect/xtable.h
      
      - Fix a bug in MONGO tests by changing 'MONGO' to $TYPE
        modified:   storage/connect/mysql-test/connect/t/mongo_test.inc
      
      - Record test results to reflect all changes
        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
      bcfb5b2d
  10. 11 Sep, 2017 1 commit
  11. 04 Sep, 2017 1 commit
    • Olivier Bertrand's avatar
      - Update version number · 7e65bdba
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
      
      - Regard columns with binary charset as string (was binary)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabutil.cpp
      
      - Support length 0 for CHAR and VARCHAR
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/value.cpp
      
      - Add ACCEPT option for void columns in discovery
        modified:   storage/connect/tabjson.cpp
      
      - Update some tests because of above change
        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/updelx.result
        modified:   storage/connect/mysql-test/connect/t/mongo_test.inc
      7e65bdba
  12. 02 Sep, 2017 3 commits
  13. 30 Aug, 2017 1 commit
    • Olivier Bertrand's avatar
      - Set MONGO_ENABLED · 36b2dec1
      Olivier Bertrand authored
        modified:   storage/connect/CMakeLists.txt
      
      - Avoid gcc warnings for "fall through"
        modified:   storage/connect/array.cpp
        modified:   storage/connect/filamdbf.cpp
        modified:   storage/connect/filamfix.cpp
        modified:   storage/connect/filamtxt.cpp
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/filamzip.cpp
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/xobject.cpp
      36b2dec1
  14. 29 Aug, 2017 1 commit
    • Olivier Bertrand's avatar
      - New distribution enabling or disabling the MONGO table type · 96252b6a
      Olivier Bertrand authored
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mycat.cc
      
      - Extend SRCDEF parameter processing to MYSQL
        modified:   storage/connect/tabext.cpp
        modified:   storage/connect/tabext.h
        modified:   storage/connect/tabmysql.cpp
      
      - Typo
        modified:   storage/connect/mysql-test/connect/std_data/Mongo2.jar
        modified:   storage/connect/mysql-test/connect/std_data/Mongo3.jar
      96252b6a
  15. 26 Aug, 2017 2 commits
    • Olivier Bertrand's avatar
      - Fix MDEV-13621 Replace sprintf by strcpy for opval · 438211a1
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
      
      - Add test output to tbl_thread.test tryng to understand failure
        modified:   storage/connect/mysql-test/connect/r/tbl_thread.result
        modified:   storage/connect/mysql-test/connect/t/tbl_thread.test
        modified:   storage/connect/tabtbl.cpp
      438211a1
    • Olivier Bertrand's avatar
      - Fix MDEV-13621 JDBC UPDATE containing single or double quote chars produces wrong result · 614611d7
      Olivier Bertrand authored
        in ha_connect::GetStringOption
        modified:   storage/connect/ha_connect.cc
      
      - Begin implement data type BINARY
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/myutil.cpp
        modified:   storage/connect/valblk.cpp
        modified:   storage/connect/valblk.h
        modified:   storage/connect/value.cpp
      
      - Fix MDEV-12422 CONNECT Engine to support CHECK TABLE
        Adding a fake check function returning HA_ADMIN_OK.
        modified:   storage/connect/ha_connect.h
      
      - Treat TBL (thread) as local when connected to the current server
        and return by timeout when a TBL remote table connection fail (Thread only)
        modified:   storage/connect/myconn.cpp
        modified:   storage/connect/tabmysql.h
        modified:   storage/connect/tabtbl.cpp
        modified:   storage/connect/tabtbl.h
      
      - Update some tests and result files
        modified:   storage/connect/mysql-test/connect/r/tbl_thread.result
        modified:   storage/connect/mysql-test/connect/t/tbl_thread.test
        modified:   storage/connect/mysql-test/connect/r/updelx.result
      
      - Add the GetCsName function
        modified:   storage/connect/reldef.h
      614611d7
  16. 17 Aug, 2017 1 commit
    • Olivier Bertrand's avatar
      - Fix failing test tbl_thread on linux · 2db52e17
      Olivier Bertrand authored
        (and mask another fail until MDEV-10179 is fixed)
        modified:   storage/connect/mysql-test/connect/r/tbl_thread.result
        modified:   storage/connect/mysql-test/connect/t/tbl_thread.test
      2db52e17
  17. 12 Aug, 2017 1 commit
  18. 09 Aug, 2017 1 commit
    • Olivier Bertrand's avatar
      - Fix gcc compile error: crosses initialization of ‘const char* drv’ · efc8a5b6
      Olivier Bertrand authored
        modified:   storage/connect/mongo.cpp
      
      - Fix test failures
        modified:   storage/connect/mysql-test/connect/r/mysql.result
        modified:   storage/connect/mysql-test/connect/r/mysql_new.result
        modified:   storage/connect/mysql-test/connect/r/tbl_thread.result
        modified:   storage/connect/mysql-test/connect/t/tbl_thread.test
        modified:   storage/connect/tabjson.cpp
      efc8a5b6
  19. 08 Aug, 2017 5 commits
  20. 07 Aug, 2017 1 commit
    • Olivier Bertrand's avatar
      - Fix bug returning pointer to a stack string · cdf00b8d
      Olivier Bertrand authored
        in JVALUE::GetString
        modified:   storage/connect/json.cpp
        modified:   storage/connect/json.h
        modified:   storage/connect/jsonudf.cpp
      
      - Fix a compiler bug happening on some configuration and platforms
        in JSNX::CalculateArray
        modified:   storage/connect/jsonudf.cpp
      
      - Set default Schema as current directory
        This fix several bugs like:
          Fail to make JSON catalog tables
          Fail to use zipped file made by a file LOAD
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      cdf00b8d
  21. 06 Aug, 2017 2 commits
    • Olivier Bertrand's avatar
    • Olivier Bertrand's avatar
      - Add a define making ha_connect.cc source unique for all MariaDB version. · 0387c13e
      Olivier Bertrand authored
      #if defined(NEW_MAR)
      #define stored_in_db stored_in_db()
      #endif   // NEW_MAR)
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/ha_connect.cc
      
      - Fix compile failure for some configuration of CONNECT.
      This by updating the #ifdef's JDBC, MONGO and CMGO_SUPPORT.
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      - Fix failure of zip.test (restore code wrongly deleted)
        modified:   storage/connect/tabjson.cpp
      
      - Make sure thread TBL table structure is correctly initialized.
        modified:   storage/connect/tabtbl.cpp
      
      - Add new test case in tbl_thread.test
        modified:   storage/connect/mysql-test/connect/r/tbl_thread.result
        modified:   storage/connect/mysql-test/connect/t/tbl_thread.test
      
      - Remake a jar file after Java was updated
        modified:   storage/connect/mysql-test/connect/std_data/Mongo3.jar
      0387c13e
  22. 05 Aug, 2017 1 commit
    • Olivier Bertrand's avatar
      - Add FBLOCK when opening ODBC, JSON and MONGO tables. · d8f99f16
      Olivier Bertrand authored
      This to have automatic closing in case of thrown error.
        modified:   storage/connect/cmgoconn.cpp
        modified:   storage/connect/cmgoconn.h
        modified:   storage/connect/filamzip.cpp
        modified:   storage/connect/javaconn.cpp
        modified:   storage/connect/javaconn.h
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/odbconn.h
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/plgdbutl.cpp
      
      - Fix INCOL bug when inserting several lines to MONGO tables
        modified:   storage/connect/cmgoconn.cpp
        modified:   storage/connect/tabcmg.cpp
        modified:   storage/connect/tabjmg.cpp
      
      - MONGO_SUPPORT is set for both MongoDB drivers
        CMGO_SUPPORT  is set only when the C driver is available
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/filter.h
        modified:   storage/connect/filter.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mongo.cpp
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      - Separate enums JCATINFO and
        modified:   storage/connect/javaconn.h
        modified:   storage/connect/jdbconn.cpp
      
      - Fix crash when executing JDBC catfunc=driver
        modified:   storage/connect/jdbconn.cpp
      
      - Report an error when the Mongo driver if explicitly
      specified and not supported.
        modified:   storage/connect/mongo.cpp
      
      - Fix bug causing catalog JSON tables to fail
        modified:   storage/connect/tabjson.cpp
      
      - Protect by mutex the Ready variable of the TBLTBM table type
        modified:   storage/connect/tabtbl.cpp
      
      - Put testing of Thread TBL tables in a separate test
      With added case and modified old case that could avoid the test to fail.
        modified:   storage/connect/mysql-test/connect/r/tbl.result
        modified:   storage/connect/mysql-test/connect/t/tbl.test
        new file:   storage/connect/mysql-test/connect/r/tbl_thread.result
        new file:   storage/connect/mysql-test/connect/t/tbl_thread.test
      
      - jmongo3.test no more exists
        deleted:    storage/connect/mysql-test/connect/t/jmongo3.test
      
      - Add new tests for the MONGO feature (disabled)
        modified:   storage/connect/mysql-test/connect/disabled.def
        new file:   storage/connect/mysql-test/connect/r/json_java_2.result
        new file:   storage/connect/mysql-test/connect/r/json_java_3.result
        new file:   storage/connect/mysql-test/connect/r/json_mongo_c.result
        new file:   storage/connect/mysql-test/connect/r/mongo_c.result
        new file:   storage/connect/mysql-test/connect/r/mongo_java_2.result
        new file:   storage/connect/mysql-test/connect/r/mongo_java_3.result
        new file:   storage/connect/mysql-test/connect/std_data/Mongo2.jar
        new file:   storage/connect/mysql-test/connect/std_data/cities.json
        new file:   storage/connect/mysql-test/connect/t/json_java_2.test
        new file:   storage/connect/mysql-test/connect/t/json_java_3.test
        new file:   storage/connect/mysql-test/connect/t/json_mongo_c.test
        new file:   storage/connect/mysql-test/connect/t/mongo.inc
        new file:   storage/connect/mysql-test/connect/t/mongo_c.test
        new file:   storage/connect/mysql-test/connect/t/mongo_java_2.test
        new file:   storage/connect/mysql-test/connect/t/mongo_java_3.test
        new file:   storage/connect/mysql-test/connect/t/mongo_test.inc
      d8f99f16
  23. 28 Jul, 2017 2 commits
  24. 24 Jul, 2017 2 commits
  25. 23 Jul, 2017 2 commits