aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/inline.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-28 10:51:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-28 10:51:12 +0200
commit12aa1b18d99b51e513e9e82c0ed45717d7538ca0 (patch)
treea7e6c080dce069d7093130372954211a66e03474 /odb/relational/inline.hxx
parent5e7e037dd8c593e727f5a9672a2564257194cb48 (diff)
Make schema version access (but not modification) thread-safe
Also cache the version in statements so that we don't have to lock the mutex (slow) every time we need to check the version.
Diffstat (limited to 'odb/relational/inline.hxx')
-rw-r--r--odb/relational/inline.hxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/odb/relational/inline.hxx b/odb/relational/inline.hxx
index 95b4328..d1a4393 100644
--- a/odb/relational/inline.hxx
+++ b/odb/relational/inline.hxx
@@ -235,12 +235,6 @@ namespace relational
bool versioned (context::versioned (c));
- // Schema name as a string literal or empty.
- //
- string schema_name (options.schema_name ()[db]);
- if (!schema_name.empty ())
- schema_name = strlit (schema_name);
-
string const& type (class_fq_name (c));
string traits ("access::object_traits_impl< " + type + ", id_" +
db.string () + " >");