aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-02 09:35:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-02 09:35:02 +0200
commit2deb85bd57bd1c31788e7236a17beff4fd3c3fa9 (patch)
tree06bf9c222b1281f4dbb9a47a1f3d8396730196b2
parentd71c8cf3a584c535ea3e2e063cb1354b539d2664 (diff)
Optimize load_id(), load() sequence for SQLite and PostgreSQL
In these databases both of these functions load the data into the object image. If there is no chance of image overwrite between these calls, then we don't need to load the image the second time.
-rw-r--r--odb/oracle/object-result.hxx2
-rw-r--r--odb/oracle/object-result.txx2
2 files changed, 2 insertions, 2 deletions
diff --git a/odb/oracle/object-result.hxx b/odb/oracle/object-result.hxx
index 8751948..91683de 100644
--- a/odb/oracle/object-result.hxx
+++ b/odb/oracle/object-result.hxx
@@ -42,7 +42,7 @@ namespace odb
object_statements<object_type>&);
virtual void
- load (object_type&);
+ load (object_type&, bool fetch);
virtual id_type
load_id ();
diff --git a/odb/oracle/object-result.txx b/odb/oracle/object-result.txx
index c998e47..2b35c7b 100644
--- a/odb/oracle/object-result.txx
+++ b/odb/oracle/object-result.txx
@@ -46,7 +46,7 @@ namespace odb
template <typename T>
void object_result_impl<T>::
- load (object_type& obj)
+ load (object_type& obj, bool)
{
// This is a top-level call so the statements cannot be locked.
//