1. 11 Feb, 2013 5 commits
    • Alexander Barkov's avatar
      Fixing vec.test failure on Windows. · 237eda72
      Alexander Barkov authored
         
      - The "spath" column does not get replaces with $MYSQLD_DATADIR,
      because it does not include the drive letter part, e.g. C:\.
      Removing excluding spath from the "SELECT ... FROM dir1" query
      
      - Warnings return slightly different text on Linux and Windows.
        Linux has extra "/./" part:
          DATADIR/./test/t1vec1
      
      "--replace_result $MYSQLD_DATADIR DATADIR/" does not help.
      
      Using --replace_regex instead.
      
      modified:
        mysql-test/suite/connect/r/vec.result
        mysql-test/suite/connect/t/vec.test
      237eda72
    • Alexander Barkov's avatar
      Adding test for ENGINE=VEC · 49028611
      Alexander Barkov authored
      added:
        mysql-test/suite/connect/r/vec.result
        mysql-test/suite/connect/t/vec.test
      modified:
        storage/connect/plgdbutl.cpp
      49028611
    • Alexander Barkov's avatar
      Adding a test which crashed in ealier versions (dbf01.sql from Bar) · 63127233
      Alexander Barkov authored
      modified:
        mysql-test/suite/connect/r/dbf.result
        mysql-test/suite/connect/t/dbf.test
      63127233
    • Alexander Barkov's avatar
      Fixing test failure cause by recent changes in ODBC catalogue functions. · 204086bd
      Alexander Barkov authored
      modified:
        mysql-test/suite/connect/r/odbc_xls.result
        mysql-test/suite/connect/t/odbc_xls.test
      204086bd
    • Alexander Barkov's avatar
      Fixing compilation problems on Unix: · ebf2da00
      Alexander Barkov authored
      1. Conflicting declarations:
      
      In file included from /usr/include/sql.h:19:0,
           from <path>/storage/connect/odbconn.h:15,
           from <path>/storage/connect/ha_connect.cc:117:
      /usr/include/sqltypes.h:98:23: error: conflicting declaration
        ‘typedef unsigned int DWORD’
      
      os.h and unixODBC's sqltypes.h (included from sql.h) have conflicting
      declarations, because unixODBC for some reasons incorrectly defines
      DWORD as "unsigned int", while we define DWORD as "unsigned long"
      (which is the Microsoft way).
      
      We should never include os.h and odbconn.h from the same file.
      Inside tabodbc.cpp DWORD must be seen as sql.h defines it.
      In all other files DWORD must be seen as os.h defines it.
      
      Fix:
      Moving ODBC catalog function prototypes into a separate file odbccat.h.
      Fixing ha_connect.cc to include odbccat.h instead of odbcon.h
      
      2. Use of ambiguous overloaded function in myconn.cpp:
      There's no a method SetValue(const char *fmt, int i);
      There's only a method SetValue(char *fmt, int i);
      
      Fixing the call accordingly:
      
      -    crp->Kdata->SetValue((fmt) ? fmt : "", i);
      +    crp->Kdata->SetValue((fmt) ? fmt : (char*) "", i);
      
      Note, this is a quick hack. The correct fix would be to change
      the method prototype to have the "fmt" argument as "const char *".
      However, it is tightly related to about 300 other places where
      "char*" is used instead of "const char *". We'll need to fix
      all of them gradually (in separate changes).
      
      
      added:
        storage/connect/odbccat.h
      modified:
        storage/connect/ha_connect.cc
        storage/connect/myconn.cpp
        storage/connect/odbconn.h
        storage/connect/tabodbc.cpp
      ebf2da00
  2. 10 Feb, 2013 1 commit
    • Olivier Bertrand's avatar
      Bug fixed: Column charset were not handled on read. · f6ca3b05
      Olivier Bertrand authored
      Modified: ha_connect.cc (MakeRecord)
      
      Moved PlgAllocResult to plgdbutl.cpp
      Modified:
      mycat.cpp
      plgdbutl.cpp
      
      Continuing implementing the "catalog" tables (ex "info").
      Already existing were the ODBC data source table and the
      WMI column info table.
      
      The common way to handle them was modified to enable each
      table types to send personalized data.
      
      Now takes care of all existing catalog functions for table
      types that can retrieve and use such information.
      
      Modified:
      ha_connect.cc
      odbconn.cpp
      tabodbc.h
      tabodbc.cpp
      tabfmt.h
      tabfmt.cpp
      tabmysql.h
      tabmysql.cpp
      tabwmi.h
      tabwmi.cpp
      myconn.h
      myconn.cpp
      filamdbf.cpp
      plgdbsem.h
      reldef.h
      reldef.cpp
      tabdos.h
      tabdos.cpp
      tabfix.h
      xtable.h
      table.cpp
      
      f6ca3b05
  3. 09 Feb, 2013 2 commits
    • Olivier Bertrand's avatar
      No commit message · b93db097
      Olivier Bertrand authored
      No commit message
      b93db097
    • Olivier Bertrand's avatar
      Put almost all function prototypes in header files that are · 82e746ea
      Olivier Bertrand authored
      included by the program using them.
      
      Continuing implementing the "catalog" tables (ex "info").
      Already existing were the ODBC data source table and the
      WMI column info table.
      
      A common way to handle them will permit to develop many
      other such tables. Implemented:
      
      The ODBC column catalog table.
      The ODBC tables catalog table.
      The ODBC drivers catalog table.
      
      The INFO table option is replaced by the CATFUNC string option
      whode first letter specifies the information to retrieve:
      C: Columns (of a table)
      T: Tables  (of a database)
      S: Data sources
      D: Drivers
      
      Modified:
      ha_connect.cc
      odbconn.cpp
      odbconn.h
      tabodbc.h
      tabodbc.cpp
      rcmsg.c
      tabfmt.h
      tabmysql.cpp
      tabwmi.cpp
      tabwmi.h
      resource.h
      myconn.h
      filamdbf.h
      connect.cc
      connect.h
      
      Added:
      myutil.h
      82e746ea
  4. 08 Feb, 2013 9 commits
    • Alexander Barkov's avatar
      Removing double new-line markers when doing LOAD_FILE('example.ini'). · 6bd0f5da
      Alexander Barkov authored
      The libary to handle INI files on Windows XP adds an extra empty
      line before sections name.
      
      Newer versions of Windows do not.
      Unix replacement implementation also do not.
      
      modified:
        mysql-test/suite/connect/r/ini.result
        mysql-test/suite/connect/t/ini.test
      6bd0f5da
    • Alexander Barkov's avatar
      Adding a test for TABLE_TYPE=DIR · d0f6e9a8
      Alexander Barkov authored
      added:
        mysql-test/suite/connect/r/dir.result
        mysql-test/suite/connect/t/dir.test
      d0f6e9a8
    • Alexander Barkov's avatar
      Adding tests for TABLE_TYPE=INI · 516e8af8
      Alexander Barkov authored
      added:
        mysql-test/suite/connect/r/ini.result
        mysql-test/suite/connect/std_data/contact.ini
        mysql-test/suite/connect/t/ini.test
      516e8af8
    • Alexander Barkov's avatar
      Adding REPLACE(xxx, '\r\n','\n'), not to fail on Windows. · 3dd08e1f
      Alexander Barkov authored
      pending merges:
        Alexander Barkov 2013-02-08 Adding tests for TABLE_TYPE=CSV
      3dd08e1f
    • Alexander Barkov's avatar
      Adding tests for TABLE_TYPE=CSV · ec838d56
      Alexander Barkov authored
      ec838d56
    • Alexander Barkov's avatar
      Adding tests for TABLE_TYPE=CSV · 9cfc2e23
      Alexander Barkov authored
      added:
        mysql-test/suite/connect/r/csv.result
        mysql-test/suite/connect/std_data/people.csv
        mysql-test/suite/connect/t/csv.test
      9cfc2e23
    • Alexander Barkov's avatar
      Adding a test for TABLE_TYPE=BIN · dd9ee7d1
      Alexander Barkov authored
      added:
        mysql-test/suite/connect/r/bin.result
        mysql-test/suite/connect/std_data/Testbal.dat
        mysql-test/suite/connect/t/bin.test
      dd9ee7d1
    • Olivier Bertrand's avatar
      1) Fix bug on strange sprintf · ec2112f3
      Olivier Bertrand authored
      2) Fix bug on bad sprintf
      3) Fix bug on cast from pointer to int
      
      4) Begin implementing the "info" tables.
      Already existing were the ODBC sata source table and the
      WMI column info table.
      
      A common way to handle them will permit to develop many
      other such tables. Implemented:
      
      The ODBC column info table.
      
      Modified:
      ha_connect.cc  (4)
      odbconn.cpp    (4)
      tabodbc.h      (4)
      tabodbc.cpp    (4)
      tabsys.h       (3)
      rcmsg.c        (4)
      tabfmt.cpp     (2)
      tabtbl.cpp     (1)
      resource.h     (4)
      mycat.h        (4)
      ec2112f3
    • Olivier Bertrand's avatar
      1) Fix bug on strange sprintf · 2809803e
      Olivier Bertrand authored
      2) Fix bug on bad sprintf
      3) Fix bug on cast from pointer to int
      
      4) Begin implementing the "info" tables.
      Already existing were the ODBC sata source table and the
      WMI column info table.
      
      A common way to handle them will permit to develop many
      other such tables. Implemented:
      
      The ODBC column info table.
      
      Modified:
      ha_connect.cc  (4)
      odbconn.cpp    (4)
      tabodbc.h      (4)
      tabodbc.cpp    (4)
      tabsys.h       (3)
      rcmsg.c        (4)
      tabfmt.cpp     (2)
      tabtbl.cpp     (1)
      resource.h     (4)
      mycat.h        (4)
      2809803e
  5. 07 Feb, 2013 14 commits
  6. 06 Feb, 2013 6 commits
    • Alexander Barkov's avatar
      Adding missing DROP TABLE. · 60c4cab3
      Alexander Barkov authored
      Otherwise, the further tests fail on "table t1 already exists"
      60c4cab3
    • Alexander Barkov's avatar
      Adding a test for ODBC/XLS. · 0758b2bd
      Alexander Barkov authored
      Currently only for ASCII data.
      TODO: add tests for extended letters (e.g. Latin1, Cyrillic, etc).
      
      
      added:
        mysql-test/suite/connect/r/odbc_xls.result
        mysql-test/suite/connect/std_data/contacts.xls
        mysql-test/suite/connect/t/odbc_xls.test
      0758b2bd
    • Alexander Barkov's avatar
      Introducing functions global_open() and global_fopen() for these purposes: · 22a8fb03
      Alexander Barkov authored
      - Removing duplicate code to generate error message text
      - In the future they will most likely check secure_file_priv directory.
      
      
      modified:
        storage/connect/filamdbf.cpp
        storage/connect/filamfix.cpp
        storage/connect/filamtxt.cpp
        storage/connect/filamvct.cpp
        storage/connect/libdoc.cpp
        storage/connect/maputil.cpp
        storage/connect/plgdbsem.h
        storage/connect/plgdbutl.cpp
        storage/connect/tabfmt.cpp
        storage/connect/tabmul.cpp
        storage/connect/tabxml.cpp
        storage/connect/xindex.cpp
      22a8fb03
    • Alexander Barkov's avatar
      Adding tests for TABLE_TYPE=FIX · 9aa88d50
      Alexander Barkov authored
      added:
        mysql-test/suite/connect/r/fix.result
        mysql-test/suite/connect/std_data/boys.txt
        mysql-test/suite/connect/std_data/boyswin.txt
        mysql-test/suite/connect/std_data/dept.dat
        mysql-test/suite/connect/t/fix.test
      9aa88d50
    • Alexander Barkov's avatar
      Adding basic tests for TABLE_TYPE=fmt · 06dd5ea4
      Alexander Barkov authored
            
      added:
        mysql-test/suite/connect/r/fmt.result
        mysql-test/suite/connect/std_data/funny.txt
        mysql-test/suite/connect/std_data/funny2.txt
        mysql-test/suite/connect/t/fmt.test
      06dd5ea4
    • Alexander Barkov's avatar
      Commenting ALTER test which changes the DBF file size. · 1b40c7c7
      Alexander Barkov authored
      It does not work on Windows.
      
      modified:
        mysql-test/suite/connect/r/dbf.result
        mysql-test/suite/connect/t/dbf.test
      1b40c7c7
  7. 05 Feb, 2013 1 commit
    • Olivier Bertrand's avatar
      Make possible to get ODBC DataSources name and description by: · 1830e732
      Olivier Bertrand authored
      create table datasrc (
      `anyname` varchar(256) flag=1,
      `anyother name` varchar(256) flag=2)
      engine=CONNECT table_type=ODBC option_list='info=yes';
      
      or simply by:
      
      create table datasrc engine=CONNECT table_type=ODBC option_list='info=yes';
      
      then:
      
      select * from datasrc;
      
      Modified:
      ha_connect.cc
      odbconn.h
      odbconn.cpp
      tabodbc.h
      tabodbc.cpp
      
      1830e732
  8. 04 Feb, 2013 2 commits