diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-02 09:35:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-02 09:35:02 +0200 |
commit | 9eb1da8464db999d520b8739282cbe2b28da0432 (patch) | |
tree | 0b8c99a7db1ec0e510a7013f719605e3fa21ca19 /odb/mysql/object-result.txx | |
parent | cd4e72208fad964a22c99bb9fc15708a528a1e39 (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.
Diffstat (limited to 'odb/mysql/object-result.txx')
-rw-r--r-- | odb/mysql/object-result.txx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/mysql/object-result.txx b/odb/mysql/object-result.txx index e8b3560..502cb8c 100644 --- a/odb/mysql/object-result.txx +++ b/odb/mysql/object-result.txx @@ -36,7 +36,7 @@ namespace odb template <typename T> void object_result_impl<T>:: - load (object_type& obj) + load (object_type& obj, bool) { if (count_ > statement_->fetched ()) fetch (); |