An error occurred fetching the project authors.
  1. 25 Oct, 2013 1 commit
    • Olivier Bertrand's avatar
      - Add new features to ODBC table type · ba3f4a2c
      Olivier Bertrand authored
        Srcdef definition
        Execute command tables
        uncomplete connect string
      
      modified:
        storage/connect/ha_connect.cc
        storage/connect/odbccat.h
        storage/connect/odbconn.cpp
        storage/connect/odbconn.h
        storage/connect/plgdbsem.h
        storage/connect/plgdbutl.cpp
        storage/connect/tabodbc.cpp
      ba3f4a2c
  2. 11 Oct, 2013 1 commit
    • Olivier Bertrand's avatar
      - Fix bug when closing some table types · ca4c54aa
      Olivier Bertrand authored
      modified:
        storage/connect/tabmul.cpp
        storage/connect/tabmysql.cpp
        storage/connect/tabodbc.cpp
      
      - Add Insert support for ODBC table
        Add the send command feature to ODBC tables
        (not documented yet)
      
      modified:
        storage/connect/ha_connect.cc
        storage/connect/myconn.cpp
        storage/connect/odbccat.h
        storage/connect/odbconn.cpp
        storage/connect/odbconn.h
        storage/connect/tabodbc.cpp
        storage/connect/tabodbc.h
      ca4c54aa
  3. 17 Feb, 2013 2 commits
  4. 11 Feb, 2013 1 commit
    • 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
  5. 09 Feb, 2013 1 commit
    • 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
  6. 07 Feb, 2013 2 commits
  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. 18 Jan, 2013 1 commit