Changeset 2609
- Timestamp:
- 05/09/12 12:41:52 (12 months ago)
- Location:
- trunk/pdns/modules/gpgsqlbackend
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/modules/gpgsqlbackend/spgsql.cc
r2234 r2609 27 27 d_connectstr+=" port="+port; 28 28 29 if(!password.empty()) 29 d_connectlogstr=d_connectstr; 30 31 if(!password.empty()) { 32 d_connectlogstr+=" password=XXX"; 30 33 d_connectstr+=" password="+password; 34 } 31 35 32 36 ensureConnect(); … … 56 60 if (!d_db || PQstatus(d_db)==CONNECTION_BAD) { 57 61 try { 58 throw sPerrorException("Unable to connect to database, connect string: "+d_connect str);62 throw sPerrorException("Unable to connect to database, connect string: "+d_connectlogstr); 59 63 } 60 64 catch(...) { -
trunk/pdns/modules/gpgsqlbackend/spgsql.hh
r2234 r2609 27 27 PGconn* d_db; 28 28 string d_connectstr; 29 string d_connectlogstr; 29 30 PGresult* d_result; 30 31 int d_count;