Commit a638c315 authored by Maciej Sobczak's avatar Maciej Sobczak

Corrected order of pre-use execution steps.

parent 7472d9bc
......@@ -285,6 +285,11 @@ bool statement_impl::execute(bool withDataExchange)
fetchSize_ = initialFetchSize_;
// pre-use should be executed before inspecting the sizes of use
// elements, as they can be resized in type conversion routines
std::size_t bindSize = uses_size();
if (bindSize > 1 && fetchSize_ > 1)
......@@ -293,8 +298,6 @@ bool statement_impl::execute(bool withDataExchange)
"Bulk insert/update and bulk select not allowed in same query");
// looks like a hack and it is - row description should happen
// *after* the use elements were completely prepared
// and *before* the into elements are touched, so that the row
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment