aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/exceptions.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-21 11:47:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-21 11:48:59 +0200
commitc83733757b74b0897b294d1368a0f8a0abe49184 (patch)
tree2f7252c1616e4813da0cd9c2461b88a5a47dfb3a /odb/mysql/exceptions.cxx
parent6f855f902e8ea0b08d6aa2c1c95c265e696ac7c8 (diff)
Cosmetic changes
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 ();