1. 24 May, 2013 4 commits
    • Alexander Barkov's avatar
      Do not run mysql.test in case of embedded server. · 74be65c6
      Alexander Barkov authored
      We need a running MySQL server for this test.
      
      modified:
        storage/connect/mysql-test/connect/t/mysql.test
      74be65c6
    • Alexander Barkov's avatar
      Splitting SQLite3 tests into two parts: · aa505ea3
      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
      aa505ea3
    • Alexander Barkov's avatar
      Removing more cases of direct use of thd. · 5b0e3a53
      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
      5b0e3a53
    • Alexander Barkov's avatar
      Removing direct access to thd, using functions: · f2e14736
      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
      f2e14736
  2. 23 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Fix setting default type to MYSQL->PROXY->DOS in some places where it · 33b95315
      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
      33b95315
    • Alexander Barkov's avatar
      Connect: fixing non thread-safe code. · 7ef4c5df
      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
      7ef4c5df
  3. 22 May, 2013 1 commit
    • Olivier Bertrand's avatar
      - Changing CONNECT version number and date · aebcd56c
      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
      aebcd56c
  4. 21 May, 2013 1 commit
    • Alexander Barkov's avatar
      "mtr --suite=connect --embedded" tests did not work for two reasons: · 41bda068
      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
      41bda068
  5. 20 May, 2013 2 commits
  6. 19 May, 2013 3 commits
    • Olivier Bertrand's avatar
      - Removing unused copy file · aacd6f55
      Olivier Bertrand authored
      modified:
        storage/connect/mysql-test/connect/t/pivot.test
      aacd6f55
    • Olivier Bertrand's avatar
      - Commit merged and resolve · cc38c511
      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
      cc38c511
    • Olivier Bertrand's avatar
      - Allowing views and queries as parameters for PROXY base tables · c035bde3
      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
      c035bde3
  7. 13 May, 2013 10 commits
  8. 12 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Changing mode from +x to -x · 5ac8c8be
      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*
      5ac8c8be
    • Olivier Bertrand's avatar
      - Code cleaning. · 8c9ce173
      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
      8c9ce173
  9. 11 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Fix tabpivot compile errors on Linux. · 44cb1ce8
      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
      44cb1ce8
    • Olivier Bertrand's avatar
      - Added a test case for PIVOT tables · 5657660a
      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
      5657660a
  10. 10 May, 2013 2 commits
    • Olivier Bertrand's avatar
      - Add pivot table files and support · 2cd63afe
      Olivier Bertrand authored
      modified:
        storage/connect/CMakeLists.txt
      2cd63afe
    • Olivier Bertrand's avatar
      - Added table type PIVOT · 99d95c8a
      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
      99d95c8a
  11. 09 May, 2013 1 commit
  12. 05 May, 2013 1 commit
  13. 03 May, 2013 1 commit
    • Olivier Bertrand's avatar
      - Add test for XCOL and OCCUR tables · 5fc19f8d
      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
      5fc19f8d
  14. 02 May, 2013 1 commit
    • Olivier Bertrand's avatar
      - Adding a loop test to prevent PROXY based table to loop when repointing on itself. · f3e94409
      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
      f3e94409
  15. 30 Apr, 2013 2 commits
  16. 29 Apr, 2013 2 commits
    • Olivier Bertrand's avatar
      - Fix a bug causing a crash when using OEM tables based on BIN tables. · 2a37f3e0
      Olivier Bertrand authored
      modified:
        storage/connect/reldef.cpp
      2a37f3e0
    • Olivier Bertrand's avatar
      - Adding 3 new table types: · 4fd74200
      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
      4fd74200
  17. 28 Apr, 2013 1 commit
  18. 25 Apr, 2013 1 commit
    • Alexander Barkov's avatar
      ha_cassandra.so and ha_oqgraph.so can be build only if boost is installed · bc80fb07
      Alexander Barkov authored
      on the build machine. So put them into the deb packages optionally.
           
      Additionally, fixing cassandra/CMakeLists.txt to work with thrift
      installed in /opt/local and /opt. It was supposed to work, but did
      not work actually. Only thrift installed in /usr or /usr/local worked.
      
      
      renamed:
        debian/dist/Debian/mariadb-server-10.0.files => debian/dist/Debian/mariadb-server-10.0.files.in
        debian/dist/Ubuntu/mariadb-server-10.0.files => debian/dist/Ubuntu/mariadb-server-10.0.files.in
      modified:
        .bzrignore
        CMakeLists.txt
        storage/cassandra/CMakeLists.txt
        storage/cassandra/cassandra_se.cc
        storage/cassandra/gen-cpp/Cassandra.h
        storage/cassandra/gen-cpp/cassandra_types.h
        storage/oqgraph/CMakeLists.txt
        debian/dist/Debian/mariadb-server-10.0.files.in
        debian/dist/Ubuntu/mariadb-server-10.0.files.in
      bc80fb07
  19. 24 Apr, 2013 1 commit