1. 27 May, 2013 1 commit
  2. 26 May, 2013 1 commit
  3. 24 May, 2013 5 commits
    • Alexander Barkov's avatar
      Adding the timezone plugin service, to convert between · ed11267c
      Alexander Barkov authored
      MYSQL_TIME and my_time_t and back.
      
      Using the new service instead of direct access to thd.
      
      added:
        include/mysql/service_thd_timezone.h
        libservices/thd_timezone_service.c
      modified:
        include/my_time.h
        include/mysql.h.pp
        include/mysql/plugin.h
        include/mysql/plugin_audit.h.pp
        include/mysql/plugin_auth.h.pp
        include/mysql/plugin_ftparser.h.pp
        include/mysql/services.h
        include/mysql_time.h
        include/service_versions.h
        libservices/CMakeLists.txt
        sql/sql_class.cc
        sql/sql_plugin_services.h
        storage/connect/value.cpp
      ed11267c
    • Alexander Barkov's avatar
      Do not run mysql.test in case of embedded server. · 6959ff12
      Alexander Barkov authored
      We need a running MySQL server for this test.
      
      modified:
        storage/connect/mysql-test/connect/t/mysql.test
      6959ff12
    • Alexander Barkov's avatar
      Splitting SQLite3 tests into two parts: · 7098ad28
      Alexander Barkov authored
      1. for both server and embedded
      2. for server only
      
      added:
        storage/connect/mysql-test/connect/r/odbc_sqlite3_grant.result
        storage/connect/mysql-test/connect/t/have_odbc_sqlite3.inc
        storage/connect/mysql-test/connect/t/odbc_sqlite3_grant.test
      modified:
        storage/connect/mysql-test/connect/r/odbc_sqlite3.result
        storage/connect/mysql-test/connect/t/odbc_sqlite3.test
      7098ad28
    • Alexander Barkov's avatar
      Removing more cases of direct use of thd. · a69ec1f5
      Alexander Barkov authored
      Also, TABLE_TYPE=MySQL now uses "root@localhost" by default,
      instead of current user and current host name.
      
      modified:
        storage/connect/ha_connect.cc
      a69ec1f5
    • Alexander Barkov's avatar
      Removing direct access to thd, using functions: · c8ad6e40
      Alexander Barkov authored
      - thd_query_string() insted of thd->query_string
      - thd_sql_command() instead ot thd->lex->sql_command
      - table_share->s.db.str instead of thd->db
      
      modified:
        storage/connect/connect.cc
        storage/connect/ha_connect.cc
      c8ad6e40
  4. 23 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Fix setting default type to MYSQL->PROXY->DOS in some places where it · a9a7df22
      Olivier Bertrand authored
        was not done correctly.
      - Fix a bug causing add_field to generate a syntax error on DOUBLE columns
        with a 0 decimal value.
      - Column can be undefined when Srcdef is specified.
      
      modified:
        storage/connect/ha_connect.cc
        storage/connect/mycat.cc
        storage/connect/tabmysql.cpp
        storage/connect/tabutil.cpp
        storage/connect/tabutil.h
      a9a7df22
    • Alexander Barkov's avatar
      Connect: fixing non thread-safe code. · 450730ae
      Alexander Barkov authored
      Passing "struct tm" buffer to GetGmTime() instead of using a static bufer.
      
      modified:
        storage/connect/tabodbc.cpp
        storage/connect/value.cpp
        storage/connect/value.h
      450730ae
  5. 22 May, 2013 1 commit
    • Olivier Bertrand's avatar
      - Changing CONNECT version number and date · 061ad003
      Olivier Bertrand authored
      modified:
        storage/connect/ha_connect.cc
        storage/connect/mysql-test/connect/r/xml.result
      
      - Testing default pivot columns for srcdef
        Fixing order by MariaDB bug for pivot tables
      modified:
        storage/connect/tabmysql.cpp
        storage/connect/tabmysql.h
        storage/connect/tabpivot.cpp
        storage/connect/tabpivot.h
      061ad003
  6. 21 May, 2013 1 commit
    • Alexander Barkov's avatar
      "mtr --suite=connect --embedded" tests did not work for two reasons: · 86e37714
      Alexander Barkov authored
      1. The Connect engine code assumed that mysql_home_directory is always "./",
      which is not the fact in case of embedded server.
      Fixing the routines creating file names to add the mysql_home_directory prefix.
      
      2. FILE privilege is not checked in embedded server.
      Moving FILE related tests into separate files.
      Skipping the FILE related tests when running with --embedded.
      
      added:
        storage/connect/mysql-test/connect/r/grant.result
        storage/connect/mysql-test/connect/r/ini_grant.result
        storage/connect/mysql-test/connect/r/mysql_grant.result
        storage/connect/mysql-test/connect/r/xml_grant.result
        storage/connect/mysql-test/connect/t/grant.test
        storage/connect/mysql-test/connect/t/ini_grant.test
        storage/connect/mysql-test/connect/t/mysql_grant.test
        storage/connect/mysql-test/connect/t/xml_grant.test
      modified:
        storage/connect/global.h
        storage/connect/ha_connect.cc
        storage/connect/mycat.cc
        storage/connect/mysql-test/connect/r/bin.result
        storage/connect/mysql-test/connect/r/csv.result
        storage/connect/mysql-test/connect/r/dbf.result
        storage/connect/mysql-test/connect/r/dir.result
        storage/connect/mysql-test/connect/r/fix.result
        storage/connect/mysql-test/connect/r/ini.result
        storage/connect/mysql-test/connect/r/mysql.result
        storage/connect/mysql-test/connect/r/vec.result
        storage/connect/mysql-test/connect/r/xml.result
        storage/connect/mysql-test/connect/t/bin.test
        storage/connect/mysql-test/connect/t/csv.test
        storage/connect/mysql-test/connect/t/dbf.test
        storage/connect/mysql-test/connect/t/dir.test
        storage/connect/mysql-test/connect/t/fix.test
        storage/connect/mysql-test/connect/t/ini.test
        storage/connect/mysql-test/connect/t/mysql.test
        storage/connect/mysql-test/connect/t/vec.test
        storage/connect/mysql-test/connect/t/xml.test
        storage/connect/plgdbsem.h
        storage/connect/plugutil.c
      86e37714
  7. 20 May, 2013 2 commits
  8. 19 May, 2013 3 commits
    • Olivier Bertrand's avatar
      - Removing unused copy file · e0202a79
      Olivier Bertrand authored
      modified:
        storage/connect/mysql-test/connect/t/pivot.test
      e0202a79
    • Olivier Bertrand's avatar
      - Commit merged and resolve · 1dd62315
      Olivier Bertrand authored
      added:
        storage/connect/inihandl.h
        storage/connect/rcmsg.h
      modified:
        storage/connect/CMakeLists.txt
        storage/connect/connect.h
        storage/connect/ha_connect.cc
        storage/connect/inihandl.c
        storage/connect/maputil.h
        storage/connect/odbconn.cpp
        storage/connect/osutil.c
        storage/connect/osutil.h
        storage/connect/plgdbutl.cpp
        storage/connect/plugutil.c
        storage/connect/rcmsg.c
        storage/connect/tabmysql.cpp
        storage/connect/tabodbc.cpp
        storage/connect/tabpivot.cpp
        storage/connect/tabsys.cpp
        storage/connect/tabutil.cpp
        storage/connect/tabutil.h
        storage/connect/user_connect.cc
        storage/connect/value.cpp
      1dd62315
    • Olivier Bertrand's avatar
      - Allowing views and queries as parameters for PROXY base tables · e904ee36
      Olivier Bertrand authored
        NOTE: Checking for looping references cannot be done when using views
        as parameters. This should not be allowed on production servers and
        should be dependant on a system variable and/or on speciel grant.
      
      modified:
        storage/connect/CMakeLists.txt
        storage/connect/connect.cc
        storage/connect/ha_connect.cc
        storage/connect/myconn.cpp
        storage/connect/myconn.h
        storage/connect/mysql-test/connect/r/fmt.result
        storage/connect/mysql-test/connect/r/pivot.result
        storage/connect/mysql-test/connect/t/fmt.test
        storage/connect/mysql-test/connect/t/pivot.test
        storage/connect/plgdbsem.h
        storage/connect/plugutil.c
        storage/connect/tabcol.cpp
        storage/connect/tabcol.h
        storage/connect/tabfmt.cpp
        storage/connect/tabmysql.cpp
        storage/connect/tabmysql.h
        storage/connect/taboccur.cpp
        storage/connect/taboccur.h
        storage/connect/tabpivot.cpp
        storage/connect/tabpivot.h
        storage/connect/tabtbl.cpp
        storage/connect/tabutil.cpp
        storage/connect/tabutil.h
        storage/connect/xtable.h
      e904ee36
  9. 13 May, 2013 10 commits
  10. 12 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Changing mode from +x to -x · 2c1742c1
      Olivier Bertrand authored
      modified:
        storage/connect/mysql-test/connect/r/pivot.result*
        storage/connect/mysql-test/connect/t/pivot.test*
        storage/connect/tabpivot.cpp*
        storage/connect/tabpivot.h*
      2c1742c1
    • Olivier Bertrand's avatar
      - Code cleaning. · 57ad1acd
      Olivier Bertrand authored
      modified:
        storage/connect/connect.cc
        storage/connect/tabutil.h
      
      - Fix closing invalid tdbp in External_lock.
      modified:
        storage/connect/ha_connect.cc
      
      - Fix closing null Tdbp
      modified:
        storage/connect/tabpivot.cpp*
      
      - Fix regression error in table type TBL no more accepting missing
        columns in sub-tables even when Accept was set to TRUE.
      modified:
        storage/connect/tabtbl.cpp
      57ad1acd
  11. 11 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Fix tabpivot compile errors on Linux. · 65c2bf32
      Olivier Bertrand authored
      - Fix Tabpivot not closing the source table.
      - Fix pivot.test error on Linux by specifying ENDING=2 for the expenses table.
      
      modified:
        storage/connect/mysql-test/connect/r/pivot.result
        storage/connect/mysql-test/connect/t/pivot.test
        storage/connect/tabpivot.cpp
        storage/connect/tabpivot.h
      65c2bf32
    • Olivier Bertrand's avatar
      - Added a test case for PIVOT tables · 4c9ede93
      Olivier Bertrand authored
      added:
        storage/connect/mysql-test/connect/r/pivot.result
        storage/connect/mysql-test/connect/std_data/expenses.txt
        storage/connect/mysql-test/connect/t/pivot.test
      4c9ede93
  12. 10 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Add pivot table files and support · 8296c509
      Olivier Bertrand authored
      modified:
        storage/connect/CMakeLists.txt
      8296c509
    • Olivier Bertrand's avatar
      - Added table type PIVOT · c71e7b7d
      Olivier Bertrand authored
      modified:
        storage/connect/filamdbf.cpp
        storage/connect/ha_connect.cc
        storage/connect/ha_connect.h
        storage/connect/mycat.cc
        storage/connect/myconn.cpp
        storage/connect/odbconn.cpp
        storage/connect/plgcnx.h
        storage/connect/plgdbsem.h
        storage/connect/plgdbutl.cpp
        storage/connect/tabfmt.cpp
        storage/connect/tabpivot.cpp
        storage/connect/tabpivot.h
        storage/connect/tabutil.cpp
        storage/connect/tabwmi.cpp
        storage/connect/tabxcl.cpp
        storage/connect/value.cpp
        storage/connect/value.h
      c71e7b7d
  13. 09 May, 2013 1 commit
  14. 05 May, 2013 1 commit
  15. 03 May, 2013 1 commit
    • Olivier Bertrand's avatar
      - Add test for XCOL and OCCUR tables · c9f56dd9
      Olivier Bertrand authored
      - Fix a bug causing a crash when doing an ALTER TABLE
        (because create_info->alias is NULL)
      
      added:
        storage/connect/mysql-test/connect/r/occur.result
        storage/connect/mysql-test/connect/r/xcol.result
        storage/connect/mysql-test/connect/t/occur.test
        storage/connect/mysql-test/connect/t/xcol.test
      modified:
        storage/connect/ha_connect.cc
      c9f56dd9
  16. 02 May, 2013 1 commit
    • Olivier Bertrand's avatar
      - Adding a loop test to prevent PROXY based table to loop when repointing on itself. · 1e558029
      Olivier Bertrand authored
      - Fix bug causing PROXY on non CONNECT tables to sometimes use the wrong DB.
      - Making some more tests in create that were in pre_create not called anymore
        when columns are defined.
      - Updating some test results to reflect new warnings.
      
      modified:
        storage/connect/ha_connect.cc
        storage/connect/mysql-test/connect/r/tbl.result
        storage/connect/mysql-test/connect/r/upd.result
        storage/connect/tabcol.h
        storage/connect/tabmysql.cpp
        storage/connect/taboccur.cpp
        storage/connect/taboccur.h
        storage/connect/tabtbl.cpp
        storage/connect/tabtbl.h
        storage/connect/tabutil.cpp
        storage/connect/tabutil.h
        storage/connect/tabxcl.cpp
        storage/connect/tabxcl.h
      1e558029
  17. 30 Apr, 2013 2 commits
  18. 29 Apr, 2013 2 commits
    • Olivier Bertrand's avatar
      - Fix a bug causing a crash when using OEM tables based on BIN tables. · af3a1d1c
      Olivier Bertrand authored
      modified:
        storage/connect/reldef.cpp
      af3a1d1c
    • Olivier Bertrand's avatar
      - Adding 3 new table types: · 4949c68d
      Olivier Bertrand authored
        PROXY table base on another table. Used by several other types.
        XCOL  proxy on a table having a colummn containing a list of values
        OCCUR proxy on a table having several columns containing the same type
              of values that can be put in a unique column and several rows.
        TBL   Not new but now internally using the PROXY table class.
      - Fix 2 bugs in add_field:
              Change '=' to ' ' after the COMMENT keyword.
              Quote column names between '`' in the SQL string.
      - Update xml test result to the CONNECT version
      
      added:
        storage/connect/taboccur.cpp
        storage/connect/taboccur.h
        storage/connect/tabutil.cpp
        storage/connect/tabutil.h
        storage/connect/tabxcl.cpp
        storage/connect/tabxcl.h
      modified:
        storage/connect/CMakeLists.txt
        storage/connect/ha_connect.cc
        storage/connect/ha_connect.h
        storage/connect/mycat.cc
        storage/connect/myconn.cpp
        storage/connect/mysql-test/connect/r/xml.result
        storage/connect/plgdbsem.h
        storage/connect/tabmysql.cpp
        storage/connect/tabtbl.cpp
        storage/connect/tabtbl.h
        storage/connect/valblk.cpp
        storage/connect/valblk.h
      4949c68d