aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/result.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/result.txx')
-rw-r--r--odb/mysql/result.txx8
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/mysql/result.txx b/odb/mysql/result.txx
index b85e2e0..39100ab 100644
--- a/odb/mysql/result.txx
+++ b/odb/mysql/result.txx
@@ -40,6 +40,14 @@ namespace odb
template <typename T>
void result_impl<T>::
+ current (T& x)
+ {
+ if (state_ == query_statement::success)
+ traits::init (x, statements_.image ());
+ }
+
+ template <typename T>
+ void result_impl<T>::
next ()
{
cur_ = pointer_type ();