Changeset - 5f1e77d0d1a2
[Not reviewed]
0 1 0
Jan Kaluza - 12 years ago 2013-01-11 10:19:39
hanzz.k@gmail.com
Set password for pqxx
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/pqxxbackend.cpp
Show inline comments
 
@@ -57,6 +57,9 @@ bool PQXXBackend::connect() {
 
	str += CONFIG_STRING(m_config, "database.database") + " ";
 

	
 
	str += "user=" + CONFIG_STRING(m_config, "database.user") + " ";
 
	if (!CONFIG_STRING(m_config, "database.password").empty()) {
 
		str += "password=" + CONFIG_STRING(m_config, "database.password") + " ";
 
	}
 

	
 
	try {
 
		m_conn = new pqxx::connection(str);
0 comments (0 inline, 0 general)