aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/exceptions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/exceptions.cxx')
-rw-r--r--odb/mysql/exceptions.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/odb/mysql/exceptions.cxx b/odb/mysql/exceptions.cxx
index dd9e199..458bb8c 100644
--- a/odb/mysql/exceptions.cxx
+++ b/odb/mysql/exceptions.cxx
@@ -24,11 +24,8 @@ namespace odb
database_exception::
database_exception (unsigned int e, const string& s, const string& m)
- : error_ (e)
+ : error_ (e), sqlstate_ (s), message_ (m)
{
- sqlstate_ = s;
- message_ = m;
-
ostringstream ostr;
ostr << error_ << " (" << sqlstate_ << "): " << message_;
what_ = ostr.str ();