Use std::ostringstream for a write-only stream

Just small clean up: don't use stringstream when we really need just an
ostringstream.
This commit is contained in:
Vadim Zeitlin
2026-04-27 23:57:40 +02:00
parent 9ff0998296
commit 37f9aa7e20

View File

@@ -596,7 +596,7 @@ void statement_impl::do_add_query_parameters()
for (std::size_t i = 0; i != usize; ++i)
{
std::string name = get_name(*uses_[i], i, backEnd_);
std::stringstream value;
std::ostringstream value;
uses_[i]->dump_value(value, backEnd_->get_row_to_dump());
session_.add_query_parameter(std::move(name), value.str());
}