summaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
Diffstat (limited to 'odb')
-rw-r--r--odb/relational/common.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/relational/common.cxx b/odb/relational/common.cxx
index 46e1570..7ac2fc1 100644
--- a/odb/relational/common.cxx
+++ b/odb/relational/common.cxx
@@ -164,13 +164,11 @@ namespace relational
if (r != 0)
abort (); // We are in static initialization, so this is fatal.
- //
- //
string str (s + 12); // 12 for "relational::"
- istringstream is (string (str, str.find (':')));
+ istringstream is (string (str, 0, str.find (':')));
database d;
- if (!is >> d)
+ if (!(is >> d))
abort ();
return d;