1. 03 Jun, 2015 2 commits
  2. 02 Jun, 2015 1 commit
  3. 30 May, 2015 1 commit
    • Olivier Bertrand's avatar
      Add unicode ODBC types to the types recognized by CONNECT. · 514a7d84
      Olivier Bertrand authored
      Was added in function TranslateSQLType.
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/value.h
      
      Add some trace in particular in indexing routines.
        modified:   storage/connect/block.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/plugutil.c
        modified:   storage/connect/xindex.cpp
        modified:   storage/connect/xindex.h
      514a7d84
  4. 27 May, 2015 1 commit
    • Olivier Bertrand's avatar
      Change all preprocessor compiler directives to use __WIN__ as the mean of · b6a56370
      Olivier Bertrand authored
      specifying Windows or not Windows compile. This is what MariaDB does.
        modified:   storage/connect/array.cpp
        modified:   storage/connect/blkfil.cpp
        modified:   storage/connect/block.h
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/domdoc.cpp
        modified:   storage/connect/filamap.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/filter.h
        modified:   storage/connect/fmdlex.c
        modified:   storage/connect/global.h
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/json.cpp
        modified:   storage/connect/macutil.cpp
        modified:   storage/connect/macutil.h
        modified:   storage/connect/maputil.cpp
        modified:   storage/connect/mycat.cc
        modified:   storage/connect/myconn.cpp
        modified:   storage/connect/myconn.h
        modified:   storage/connect/myutil.cpp
        modified:   storage/connect/odbconn.cpp
        modified:   storage/connect/odbconn.h
        modified:   storage/connect/os.h
        modified:   storage/connect/osutil.c
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/plugutil.c
        modified:   storage/connect/rcmsg.c
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/reldef.h
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfmt.cpp
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabmac.cpp
        modified:   storage/connect/tabmac.h
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmul.h
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/taboccur.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/tabxcl.cpp
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/valblk.cpp
        modified:   storage/connect/value.cpp
        modified:   storage/connect/xindex.cpp
        modified:   storage/connect/xindex.h
      b6a56370
  5. 25 May, 2015 1 commit
    • Olivier Bertrand's avatar
      JSONColumns and XMLColumns revisited. They can retrieve their parameters directly · fb986329
      Olivier Bertrand authored
      from the PTOS argument. For this to work, finding the table options is now split
      in HA_CONNECT functions and exported functions available from out of ha_connect.
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/libdoc.cpp
        modified:   storage/connect/mycat.h
        modified:   storage/connect/plgdbsem.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/tabxml.h
      
      The BIN table formats have been changed to handle the case of floating point values
      when used with Big Endian or Little Endian machines.
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/mysql-test/connect/r/bin.result
        modified:   storage/connect/mysql-test/connect/t/bin.test
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabdos.h
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfix.
      h
      fb986329
  6. 20 May, 2015 1 commit
  7. 17 May, 2015 2 commits
  8. 15 May, 2015 1 commit
    • Olivier Bertrand's avatar
      Fix a bug in BIN buffer initialisation (in FIXFAM::AllocateBuffer) · b9c91090
      Olivier Bertrand authored
        modified:   storage/connect/filamfix.cpp
      
      Second version of BIN table new field format (1st one was buggy)
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfix.h
      
      Make bin.test not to fail in big-endian machines
        modified:   storage/connect/mysql-test/connect/r/bin.result
        modified:   storage/connect/mysql-test/connect/t/bin.test
      
      Fix a bug causing wrong default offset to be generated when virtual
      or special columns were placed beetween standard columns. Also
      calculate the good offset for BIN columns with new field format.
        modified:   storage/connect/reldef.cpp
      b9c91090
  9. 13 May, 2015 1 commit
    • Olivier Bertrand's avatar
      Make BIN table files more flexible with new column format. · e6b60ee5
      Olivier Bertrand authored
      In particular enable to set length and endian setting.
      This should solve all problems on IBM390s machines.
        modified:   storage/connect/ha_connect.cc
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfix.h
      
      Make DBF tables to be usable in big-endian machines (test version)
        modified:   storage/connect/filamdbf.cpp
      
      Ignore git files on storage/connect
        modified:   .gitignore
      e6b60ee5
  10. 10 May, 2015 5 commits
  11. 09 May, 2015 1 commit
    • Olivier Bertrand's avatar
      Get rid of GCC warnings about unused parameters · f5d0c770
      Olivier Bertrand authored
        modified:   storage/connect/array.cpp
        modified:   storage/connect/blkfil.cpp
        modified:   storage/connect/block.h
        modified:   storage/connect/catalog.h
        modified:   storage/connect/colblk.cpp
        modified:   storage/connect/colblk.h
        modified:   storage/connect/connect.cc
        modified:   storage/connect/filamap.cpp
        modified:   storage/connect/filamdbf.cpp
        modified:   storage/connect/filamfix.cpp
        modified:   storage/connect/filamtxt.cpp
        modified:   storage/connect/filamtxt.h
        modified:   storage/connect/filamvct.cpp
        modified:   storage/connect/filamzip.cpp
        modified:   storage/connect/filter.h
        modified:   storage/connect/ha_connect.c
        modified:   storage/connect/jsonudf.cpp
        modified:   storage/connect/mycat.h
        modified:   storage/connect/myconn.cpp
        modified:   storage/connect/plgdbutl.cpp
        modified:   storage/connect/reldef.cpp
        modified:   storage/connect/reldef.h
        modified:   storage/connect/tabcol.cpp
        modified:   storage/connect/tabdos.cpp
        modified:   storage/connect/tabdos.h
        modified:   storage/connect/tabfix.cpp
        modified:   storage/connect/tabfmt.cpp
        modified:   storage/connect/tabfmt.h
        modified:   storage/connect/tabjson.cpp
        modified:   storage/connect/tabjson.h
        modified:   storage/connect/table.cpp
        modified:   storage/connect/tabmul.cpp
        modified:   storage/connect/tabmysql.cpp
        modified:   storage/connect/tabmysql.h
        modified:   storage/connect/taboccur.cpp
        modified:   storage/connect/tabpivot.cpp
        modified:   storage/connect/tabsys.cpp
        modified:   storage/connect/tabtbl.cpp
        modified:   storage/connect/tabtbl.h
        modified:   storage/connect/tabutil.cpp
        modified:   storage/connect/tabutil.h
        modified:   storage/connect/tabvct.cpp
        modified:   storage/connect/tabvir.cpp
        modified:   storage/connect/tabvir.h
        modified:   storage/connect/tabxcl.cpp
        modified:   storage/connect/tabxcl.h
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/tabxml.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/xindex.h
        modified:   storage/connect/xobject.h
        modified:   storage/connect/xtable.h
      f5d0c770
  12. 08 May, 2015 1 commit
  13. 07 May, 2015 4 commits
  14. 05 May, 2015 1 commit
    • Olivier Bertrand's avatar
      - Fix a regression bug on (XML) HTML tables. · 12bebceb
      Olivier Bertrand authored
      modified:
        tabxml.cpp
      added:
        xml_html.test
        xml_html.result
        beers.xml
        coffee.htm
      
      - Fix MDEV-7935 by suppressing error resetting code in delete_or_rename_table.
        However, the issue is that this code was added because without it an assertion
        was raised in some cases. Unfortunately I can't remember what were these cases.
        Therefore fixing it in this case will perhaps make a new crash happening on another cases.
      modified:
        ha_connect.cc
      
      - Add the UDF Json_Array_Delete.
      modified:
        jsonudf.cpp
      12bebceb
  15. 02 May, 2015 1 commit
  16. 01 May, 2015 1 commit
    • Olivier Bertrand's avatar
      - Fix bug on updating JSON expanded values · f5b05a11
      Olivier Bertrand authored
      modified:
        json.result
        tabjson.cpp
        tabjson.h
      
      - Fix bug on multiple tables (directories must be eliminated from file list)
      modified:
        tabmul.cpp
      
      - Update version
      modified:
        ha_connect.cc
      
      - Typo
      modified:
        global.h
        ha_connect.cc
        tabtbl.cpp
        tabutil.cpp
        value.cpp
      f5b05a11
  17. 17 Apr, 2015 1 commit
    • Olivier Bertrand's avatar
      - Fix Catalog JSON table crash when no Jpath · eae8318b
      Olivier Bertrand authored
      - Added JSON OBJECT specification for pretty != 2.
      - Fix NULL values not recognized for nullable JSON columns
      - Issue an error message when a JSON table is created without specifying LRECL if PRETTY != 2.
      - Make JSONColumns use a TDBJSON class.
      - Make JSON table using MAPFAM
      modified:
        filamap.h
        filamtxt.h
        ha_connect.cc
        json.result
        tabjson.cpp
        tabjson.h
        table.cpp
      
      - Implementing Discovery for the XML table type.
      modified:
        domdoc.cpp
        domdoc.h
        ha_connect.cc
        libdoc.cpp
        plgxml.cpp
        plgxml.h
        reldef.cpp
        reldef.h
        tabxml.cpp
        tabxml.h
      
      - Providing an error message when creating an ODBC table via discovery returns
        columns of more than one table.
      modified:
        ha_connect.cc
      
      - TableOptionStruct declaration moved from ha_connect.h to mycat.h
        To make it easier to use by other classes.
      modified:
        ha_connect.cc
        ha_connect.h
        mycat.cc
        mycat.h
        reldef.cpp
        tabmysql.cpp
        taboccur.cpp
        tabpivot.cpp
        tabtbl.cpp
        tabutil.cpp
        tabxcl.cpp
      eae8318b
  18. 04 Apr, 2015 1 commit
  19. 02 Apr, 2015 1 commit
  20. 30 Mar, 2015 1 commit
  21. 28 Mar, 2015 1 commit
  22. 22 Mar, 2015 1 commit
  23. 18 Mar, 2015 1 commit
    • Olivier Bertrand's avatar
      This commit includes changes done in a previous (deleted) branch plus new ones. · 2bb42803
      Olivier Bertrand authored
      From the previous branch:
      commit eda4928ff122a0845baf5ade83b4aa29244a3a89
      Author: Olivier Bertrand <bertrandop@gmail.com>
      Date:   Mon Mar 9 22:34:56 2015 +0100
      
      - Add discovery to JSON tables
        When columns are not defined, CONNECT analyses the json file to find column definitions.
        This wors only on table that are an array of objects. Pair keys are used to generate the
        column names and pair values are used for its definition. When the LEVEL option is defined
        as a not null integer, the eventual JPATH is scanned up to the LEVEL value.
      
      From the current one:
      - Fix MDEV-7521 when column names are utf8 encoded (not a general multi-charset fix)
      
      - Adds more to JSON discovery processing and UDF's
      
      - Use PlugDup everywhere it replaces PlugSubAlloc + strcpy.
      2bb42803
  24. 16 Mar, 2015 1 commit
  25. 03 Mar, 2015 1 commit
  26. 02 Mar, 2015 2 commits
  27. 01 Mar, 2015 4 commits
    • Olivier Bertrand's avatar
      - Make json_udf test work on Windows · b9a9b82f
      Olivier Bertrand authored
      modified:
        storage/connect/mysql-test/connect/t/json_udf.inc
      b9a9b82f
    • Olivier Bertrand's avatar
      - Making json_udf test working on linux · 5f4909b3
      Olivier Bertrand authored
      added:
        storage/connect/mysql-test/connect/t/json_udf.inc
      modified:
        storage/connect/mysql-test/connect/r/json_udf.result
        storage/connect/mysql-test/connect/t/json_udf.test
      5f4909b3
    • Olivier Bertrand's avatar
      - Remove a signed/unsigned warning. · 34c89597
      Olivier Bertrand authored
      modified:
        storage/connect/jsonudf.cpp
      34c89597
    • Olivier Bertrand's avatar
      - Fix crash when Json_Value was called without arguments. · 5c8862ee
      Olivier Bertrand authored
        Correct memory calculation in Serialize.
        Correct some UDF's messages.
        Add and modify the json tests
      removed:
        storage/connect/mysql-test/connect/std_data/biblio.jsn
        storage/connect/mysql-test/connect/std_data/expense.jsn
        storage/connect/mysql-test/connect/std_data/mulexp3.jsn
        storage/connect/mysql-test/connect/std_data/mulexp4.jsn
        storage/connect/mysql-test/connect/std_data/mulexp5.jsn
      added:
        storage/connect/mysql-test/connect/r/json_udf.result
        storage/connect/mysql-test/connect/std_data/biblio.json
        storage/connect/mysql-test/connect/std_data/expense.json
        storage/connect/mysql-test/connect/std_data/mulexp3.json
        storage/connect/mysql-test/connect/std_data/mulexp4.json
        storage/connect/mysql-test/connect/std_data/mulexp5.json
        storage/connect/mysql-test/connect/t/json_udf.test
      modified:
        storage/connect/json.cpp
        storage/connect/jsonudf.cpp
        storage/connect/mysql-test/connect/r/json.result
        storage/connect/mysql-test/connect/t/json.test
      5c8862ee