aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-19 19:39:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-19 19:40:36 +0200
commita2e7161733a0fd1b69a20b627cfab87dce2db2e5 (patch)
tree4f8b70d0fce9a3724ce1ad0be1588e43c6680224
parent68e68a41c12710f37d82bcd464b217b33c18b03d (diff)
Fix incorrect argument names, make accessor order consistent
-rw-r--r--odb/pgsql/database.hxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx
index a8219d3..b4917cc 100644
--- a/odb/pgsql/database.hxx
+++ b/odb/pgsql/database.hxx
@@ -34,18 +34,18 @@ namespace odb
typedef pgsql::connection connection_type;
public:
- database (const std::string& db,
- const std::string& user,
+ database (const std::string& user,
const std::string& password,
+ const std::string& db,
const std::string& host = "",
unsigned int port = 0,
const std::string& extra_conninfo = "",
std::auto_ptr<connection_factory> factory =
std::auto_ptr<connection_factory> (0));
- database (const std::string& db,
- const std::string& user,
+ database (const std::string& user,
const std::string& password,
+ const std::string& db,
const std::string& host = "",
const std::string& socket_ext = "",
const std::string& extra_conninfo = "",
@@ -101,27 +101,27 @@ namespace odb
public:
const std::string&
- host () const
+ user () const
{
- return host_;
+ return user_;
}
const std::string&
- db () const
+ password () const
{
- return db_;
+ return password_;
}
const std::string&
- user () const
+ db () const
{
- return user_;
+ return db_;
}
const std::string&
- password () const
+ host () const
{
- return password_;
+ return host_;
}
unsigned int