Ignore:
Timestamp:
2008-10-03T16:00:50+13:00 (16 years ago)
Author:
mdewsnip
Message:

Support for using MSSQL for infodb databases, many thanks to Jeffrey Ke from DL Consulting Ltd. (http://www.dlconsulting.com). Please note that MSSQL only runs on Windows, and requires some setup before use. Documentation will be added to the Greenstone Wiki explaining this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/colservr/collectset.cpp

    r16895 r17476  
    4848#endif
    4949
     50#ifdef USE_MSSQL
     51#include "mssqldbclass.h"
     52#endif
     53
     54
    5055collectset::collectset (text_t& gsdlhome, text_t& collecthome)
    5156{
     
    251256  }
    252257#endif
    253 
     258 
     259#ifdef USE_MSSQL
     260  if (infodbtype == "mssql")
     261  {
     262    mssqldbclass *mssql_db_ptr = new mssqldbclass();
     263    db_ptr = mssql_db_ptr;
     264
     265    // add a sql browse filter
     266    sqlbrowsefilterclass *sqlbrowsefilter = new sqlbrowsefilterclass();
     267    sqlbrowsefilter->set_sql_db_ptr(mssql_db_ptr);
     268    cserver->add_filter (sqlbrowsefilter); 
     269  }
     270#endif
     271 
    254272  // Use GDBM if the infodb type is empty or not one of the values above
    255273  if (db_ptr == NULL)
Note: See TracChangeset for help on using the changeset viewer.