/[H6]/PostgresLayer.cpp
ViewVC logotype

Diff of /PostgresLayer.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 43 by torben, Wed Sep 6 18:40:35 2006 UTC revision 47 by torben, Wed Sep 6 20:27:24 2006 UTC
# Line 6  Line 6 
6  #include ".\PostgresLayer.h"  #include ".\PostgresLayer.h"
7    
8    
9  PostgresLayer::PostgresLayer(void)  PostgresLayer::PostgresLayer(ConfigFile &config)
10  {  {
11          //db.OpenEx("ODBC;Description=asd;DRIVER=PostgreSQL ANSI;SERVER=172.16.11.25; user=gruppe2;password=1337",CDatabase::noOdbcDialog);          CString dsn;
12          db.OpenEx("ODBC;Description=asd;DRIVER=PostgreSQL ANSI;SERVER=192.168.10.1; uid=torben;password=nielsen;database=h6projekt");          dsn.Format("ODBC;Description=asd;DRIVER=PostgreSQL ANSI;SERVER=%s; uid=%s;password=%s;database=%s",config.host, config.username, config.password, config.database);
13            db.OpenEx(dsn, CDatabase::noOdbcDialog);
14  }  }
15    
16  PostgresLayer::~PostgresLayer(void)  PostgresLayer::~PostgresLayer(void)

Legend:
Removed from v.43  
changed lines
  Added in v.47

  ViewVC Help
Powered by ViewVC 1.1.20