diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-02 10:18:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-02 10:18:25 +0200 |
commit | 1d5d4d47a0d38dc09302f0430008ddc8ad221add (patch) | |
tree | 09a42770e5ee68aa412a0211fa39ff5cf3be6388 /odb/mysql/statement.hxx | |
parent | 9eb1da8464db999d520b8739282cbe2b28da0432 (diff) |
Prevent potential image overwrite in MySQL query result
Diffstat (limited to 'odb/mysql/statement.hxx')
-rw-r--r-- | odb/mysql/statement.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/mysql/statement.hxx b/odb/mysql/statement.hxx index ec128f2..93adea4 100644 --- a/odb/mysql/statement.hxx +++ b/odb/mysql/statement.hxx @@ -97,8 +97,12 @@ namespace odb return rows_; } + // Fetch next or current row depending on the next argument. + // Note that fetching of the current row is only supported + // if the result is cached. + // result - fetch (); + fetch (bool next = true); void refetch (); |