1. 28 May, 2017 1 commit
  2. 23 May, 2017 2 commits
    • Olivier Bertrand's avatar
      Fix bug: Discovery of JSON table fails in DEBUG mode · e720e502
      Olivier Bertrand authored
      when NO MONGO support. (tdb->Uri is uninitialized)
        modified:   storage/connect/tabjson.cpp
      e720e502
    • Olivier Bertrand's avatar
      Fix gcc compiler warnings reported by Sergei · 37235293
      Olivier Bertrand authored
        modified:   storage/connect/array.cpp
        modified:   storage/connect/array.h
        modified:   storage/connect/blkfil.cpp
        modified:   storage/connect/blkfil.h
        modified:   storage/connect/block.h
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/colblk.h
        modified:   storage/connect/csort.h
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/filter.h
        modified:   storage/connect/global.h
        modified:   storage/connect/json.h
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/tabcol.cpp
        modified:   storage/connect/tabcol.h
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabdos.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/table.cpp
        modified:   storage/connect/tabodbc.cpp
        modified:   storage/connect/tabodbc.h
        modified:   storage/connect/tabsys.h
        modified:   storage/connect/tabxml.h
        modified:   storage/connect/value.cpp
        modified:   storage/connect/value.h
        modified:   storage/connect/xindex.cpp
        modified:   storage/connect/xindex.h
        modified:   storage/connect/xobject.cpp
        modified:   storage/connect/xobject.h
        modified:   storage/connect/xtable.h
      
      Set values as nullable when retrieving catalog info
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/mysql-test/connect/r/odbc_oracle.result
        modified:   storage/connect/odbconn.cpp
      
      Change format of Jpath
        modified:   storage/connect/json.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/mysql-test/connect/r/json.result
        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/zip.result
        modified:   storage/connect/mysql-test/connect/t/json.test
        modified:   storage/connect/mysql-test/connect/t/json_udf.test
        modified:   storage/connect/mysql-test/connect/t/json_udf_bin.test
        modified:   storage/connect/mysql-test/connect/t/zip.test
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabmgo.cpp
      
      Change null representation from ??? to <null>
        modified:   storage/connect/json.cpp
      
      Change the name of UDF that are equal to a native JSON function name
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/jsonudf.h
        modified:   storage/connect/mysql-test/connect/t/json_udf.inc
        modified:   storage/connect/mysql-test/connect/t/json_udf2.inc
      
      Fix bug in making JSON project info
        modified:   storage/connect/mongofam.cpp
      
      Fix COMPUTE when one argument is null
        modified:   storage/connect/value.cpp
      
      Value is null only when nullable
        modified:   storage/connect/value.h
      37235293
  3. 12 May, 2017 1 commit
  4. 11 May, 2017 2 commits
    • Olivier Bertrand's avatar
      Fix wrong value of JSON column · ea7081bf
      Olivier Bertrand authored
      When null and the column is NOT NULL the value was not reset.
        modified:   storage/connect/tabjson.cpp
      ea7081bf
    • Olivier Bertrand's avatar
      Fix converting bstr_t string to set error message · 2195f5dc
      Olivier Bertrand authored
        modified:   storage/connect/domdoc.cpp
      
      Fix MDEV-12768: -Wformat-overflow compile warnings
        modified:   storage/connect/global.h
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/tabvct.cpp
      
      Typo (in external_lock)
        modified:   storage/connect/ha_connect.cc
      
      Remove some warnings
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/tabmysql.cpp
      
      Add MEM_RESERVE flag to virtualAlloc
        modified:   storage/connect/plgdbutl.cpp
      
      Fix MDEV-12573:
      Accept=1 may show incorrect value for NULL column in CONNECT TBL
        modified:   storage/connect/tabutil.cpp
      
      Fix wrong setting of key size when greater than 2G
       modified:   storage/connect/xindex.cpp
      2195f5dc
  5. 08 May, 2017 2 commits
    • Olivier Bertrand's avatar
      _Null_terminated_ not recognized by gcc · 9d6677b5
      Olivier Bertrand authored
      9d6677b5
    • Olivier Bertrand's avatar
      Fixing MDEV-12149: compile errors on Windows with /Zc:strictStrings · 40a56581
      Olivier Bertrand authored
      Introduce typedef PCSZ and replace PSZ by it where it matters
      All done on CONNECT but compile still fails because of an included system file
        modified:   storage/connect/array.cpp
        modified:   storage/connect/catalog.h
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/colblk.h
        modified:   storage/connect/domdoc.cpp
        modified:   storage/connect/domdoc.h
        modified:   storage/connect/filamdbf.cpp
        modified:   storage/connect/filamdbf.h
        modified:   storage/connect/filamfix.cpp
        modified:   storage/connect/filamgz.cpp
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/filamvct.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/jdbconn.h
        modified:   storage/connect/json.cpp
        modified:   storage/connect/json.h
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/jsonudf.h
        modified:   storage/connect/libdoc.cpp
        modified:   storage/connect/macutil.cpp
        modified:   storage/connect/myconn.cpp
        modified:   storage/connect/myutil.cpp
        modified:   storage/connect/myutil.h
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/odbconn.h
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plgxml.cpp
        modified:   storage/connect/plgxml.h
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/preparse.h
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/reldef.h
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabdos.h
        modified:   storage/connect/tabext.cpp
        modified:   storage/connect/tabext.h
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfix.h
        modified:   storage/connect/tabfmt.cpp
        modified:   storage/connect/tabfmt.h
        modified:   storage/connect/tabjdbc.cpp
        modified:   storage/connect/tabjdbc.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/table.cpp
        modified:   storage/connect/tabmac.cpp
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmul.h
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabmysql.h
        modified:   storage/connect/tabodbc.cpp
        modified:   storage/connect/tabodbc.h
        modified:   storage/connect/tabpivot.cpp
        modified:   storage/connect/tabpivot.h
        modified:   storage/connect/tabsys.cpp
        modified:   storage/connect/tabsys.h
        modified:   storage/connect/tabutil.cpp
        modified:   storage/connect/tabutil.h
        modified:   storage/connect/tabvir.cpp
        modified:   storage/connect/tabvir.h
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/tabxml.h
        modified:   storage/connect/tabzip.cpp
        modified:   storage/connect/tabzip.h
        modified:   storage/connect/valblk.cpp
        modified:   storage/connect/valblk.h
        modified:   storage/connect/value.cpp
        modified:   storage/connect/value.h
        modified:   storage/connect/xindex.cpp
        modified:   storage/connect/xobject.cpp
        modified:   storage/connect/xobject.h
        modified:   storage/connect/xtable.h
      40a56581
  6. 06 May, 2017 1 commit
    • Olivier Bertrand's avatar
      Prepare fixing MDEV-12149 · e7d91cd7
      Olivier Bertrand authored
      compile errors on Windows with /Zc:strictStrings
      Introduce typedef PCSZ and replace PSZ by it where it matters
        modified:    storage/connect/colblk.h
        modified:    storage/connect/connect.cc
        modified:    storage/connect/domdoc.cpp
        modified:    storage/connect/domdoc.h
        modified:    storage/connect/filamdbf.cpp
        modified:    storage/connect/filamdbf.h
        modified:    storage/connect/filamtxt.h
        modified:    storage/connect/filamvct.cpp
        modified:    storage/connect/filamvct.h
        modified:    storage/connect/filamzip.cpp
        modified:    storage/connect/filamzip.h
        modified:    storage/connect/ha_connect.cc
        modified:    storage/connect/ha_connect.h
        modified:    storage/connect/jdbccat.h
        modified:    storage/connect/jdbconn.cpp
        modified:    storage/connect/jdbconn.h
        modified:    storage/connect/odbccat.h
        modified:    storage/connect/odbconn.cpp
        modified:    storage/connect/odbconn.h
        modified:    storage/connect/os.h
        modified:    storage/connect/plgdbsem.h
        modified:    storage/connect/plgxml.cpp
        modified:    storage/connect/plgxml.h
        modified:    storage/connect/reldef.cpp
        modified:    storage/connect/reldef.h
        modified:    storage/connect/tabdos.h
        modified:    storage/connect/tabext.cpp
        modified:    storage/connect/tabext.h
        modified:    storage/connect/tabfix.h
        modified:    storage/connect/tabfmt.cpp
        modified:    storage/connect/tabjdbc.cpp
        modified:    storage/connect/tabjdbc.h
        modified:    storage/connect/tabjson.cpp
        modified:    storage/connect/tabjson.h
        modified:    storage/connect/tabmgo.h
        modified:    storage/connect/tabmul.h
        modified:    storage/connect/tabmysql.cpp
        modified:    storage/connect/tabmysql.h
        modified:    storage/connect/tabodbc.cpp
        modified:    storage/connect/tabodbc.h
        modified:    storage/connect/tabsys.h
        modified:    storage/connect/tabwmi.cpp
        modified:    storage/connect/tabwmi.h
        modified:    storage/connect/tabxml.cpp
        modified:    storage/connect/tabxml.h
        modified:    storage/connect/tabzip.h
        modified:    storage/connect/xobject.cpp
        modified:    storage/connect/xobject.h
        modified:    storage/connect/xtable.h
      e7d91cd7
  7. 05 May, 2017 1 commit
    • Olivier Bertrand's avatar
      Fix MDEV-12603 Insert replaces values in ZIP file · d75d61cd
      Olivier Bertrand authored
        modified:   storage/connect/filamzip.cpp
        modified:   storage/connect/filamzip.h
      
      Fix MDEV-12686 Handle null in json
      Fix MDEV-12688 Insert does not handle type TINYINT
        modified:   storage/connect/json.cpp
        modified:   storage/connect/tabjson.cpp
      d75d61cd
  8. 04 May, 2017 1 commit
  9. 03 May, 2017 2 commits
  10. 02 May, 2017 1 commit
    • Olivier Bertrand's avatar
      Fix MDEV-12587 MariaDB CONNECT DIR Type · cd337a37
      Olivier Bertrand authored
       - Subfolder Option: SELECT Query Never Ends
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmul.h
      
      Work on MDEV-12667 Crash when using JSON tables
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/connect.cc
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/ha_connect.h
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.cpp
      
      Work on MONGO and MGO types
        modified:   storage/connect/mongofam.cpp
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/tabmgo.h
      
      Change Base offset for DIR tables on Linux
        modified:   storage/connect/reldef.cpp
      
      Typo
        modified:   storage/connect/catalog.h
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/mycat.h
      
      Disable all json tests
        modified:   storage/connect/mysql-test/connect/disabled.def
      cd337a37
  11. 29 Apr, 2017 1 commit
    • Olivier Bertrand's avatar
      Fix MDEV-12631 valgrind warning for zipped tables · 2f9db4ef
      Olivier Bertrand authored
        modified:   storage/connect/filamzip.cpp
      
      Add to STRING a member for testing OOM condition
        modified:   storage/connect/xtable.h
      
      Work on MONGO type and add some of its features to JSON MGO tables
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/filter.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mongofam.cpp
        modified:   storage/connect/mongofam.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/tabmgo.h
      2f9db4ef
  12. 26 Apr, 2017 1 commit
    • Olivier Bertrand's avatar
      Continue working on MONGO tables · b6135bb5
      Olivier Bertrand authored
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/tabmgo.h
      
      Add Trc to STRING allowing to test for truncation (ex oom)
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/tabext.cpp
        modified:   storage/connect/tabjdbc.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabmysql.h
        modified:   storage/connect/tabodbc.cpp
        modified:   storage/connect/xobject.cpp
        modified:   storage/connect/xobject.h
      b6135bb5
  13. 25 Apr, 2017 1 commit
    • Olivier Bertrand's avatar
      Work on new MONGO table type · 36206acc
      Olivier Bertrand authored
      Handle discovery, insert, update and delete
      Add support for Pipeline
        modified:   storage/connect/tabmgo.cpp
        modified:   storage/connect/tabmgo.h
      
      Handle double call to CondPush
      Cond moved to TDB
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/tabext.cpp
        modified:   storage/connect/tabext.h
        modified:   storage/connect/tabjdbc.cpp
        modified:   storage/connect/table.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabodbc.cpp
        modified:   storage/connect/xtable.h
      
      Add building Mongo selector to FILTER
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/filter.h
      
      Change Print function of values (needed by FILTER)
        modified:   storage/connect/value.cpp
        modified:   storage/connect/value.h
      
      Fix crash when dbname is null forJSON MGO tables
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      
      Fix MDEV-12520: Decimal values can be truncated for JDBC tables
        modified:   storage/connect/jdbconn.cpp
      
      Fix bug. Date value was null when retrieved from a json expanded array.
        modified:   storage/connect/tabjson.cpp
      36206acc
  14. 17 Apr, 2017 1 commit
    • Olivier Bertrand's avatar
      Add MONGO table type · 0149f9c2
      Olivier Bertrand authored
        new file:   storage/connect/tabmgo.cpp
        new file:   storage/connect/tabmgo.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/plgdbsem.h
      
      Fix crash when dbname is null forJSON MGO tables
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
      0149f9c2
  15. 14 Apr, 2017 1 commit
  16. 13 Apr, 2017 2 commits
    • Olivier Bertrand's avatar
      Add mongoDB access to json tables. · ff704368
      Olivier Bertrand authored
      Finalize replacement of longjmp by throw.
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/array.cpp
        modified:   storage/connect/blkfil.cpp
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/connect.cc
        modified:   storage/connect/filamtxt.cpp
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/json.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfmt.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabpivot.cpp
        modified:   storage/connect/tabsys.cpp
        modified:   storage/connect/tabvct.cpp
        modified:   storage/connect/tabvir.cpp
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/valblk.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/xindex.cpp
        modified:   storage/connect/xobject.cpp
      ff704368
    • Olivier Bertrand's avatar
      Add mongoDB access to json tables. · 9262ae65
      Olivier Bertrand authored
      Filalize replacement oflongjmp by throw.
        modified:   storage/connect/CMakeLists.txt
        modified:   storage/connect/array.cpp
        modified:   storage/connect/blkfil.cpp
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/connect.cc
        modified:   storage/connect/filamtxt.cpp
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/filter.cpp
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/jdbconn.cpp
        modified:   storage/connect/json.cpp
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfmt.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabpivot.cpp
        modified:   storage/connect/tabsys.cpp
        modified:   storage/connect/tabvct.cpp
        modified:   storage/connect/tabvir.cpp
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/valblk.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/xindex.cpp
        modified:   storage/connect/xobject.cpp
      9262ae65
  17. 06 Apr, 2017 1 commit
  18. 05 Apr, 2017 5 commits
  19. 04 Apr, 2017 1 commit
  20. 03 Apr, 2017 1 commit
    • Marko Mäkelä's avatar
      MDEV-12428 SIGSEGV in buf_page_decrypt_after_read() during DDL · 9505c968
      Marko Mäkelä authored
      Also, some MDEV-11738/MDEV-11581 post-push fixes.
      
      In MariaDB 10.1, there is no fil_space_t::is_being_truncated field,
      and the predicates fil_space_t::stop_new_ops and fil_space_t::is_stopping()
      are interchangeable. I requested the fil_space_t::is_stopping() to be added
      in the review, but some added checks for fil_space_t::stop_new_ops were
      not replaced with calls to fil_space_t::is_stopping().
      
      buf_page_decrypt_after_read(): In this low-level I/O operation, we must
      look up the tablespace if it exists, even though future I/O operations
      have been blocked on it due to a pending DDL operation, such as DROP TABLE
      or TRUNCATE TABLE or other table-rebuilding operations (ALTER, OPTIMIZE).
      Pass a parameter to fil_space_acquire_low() telling that we are performing
      a low-level I/O operation and the fil_space_t::is_stopping() status should
      be ignored.
      9505c968
  21. 31 Mar, 2017 3 commits
  22. 28 Mar, 2017 3 commits
  23. 27 Mar, 2017 2 commits
  24. 24 Mar, 2017 3 commits