File indexing completed on 2025-01-18 09:42:42
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_MYSQL_IMPL_RESULTSET_IPP
0009 #define BOOST_MYSQL_IMPL_RESULTSET_IPP
0010
0011 #pragma once
0012
0013 #include <boost/mysql/resultset.hpp>
0014
0015 void boost::mysql::resultset::assign(resultset_view v)
0016 {
0017 has_value_ = v.has_value();
0018 if (has_value_)
0019 {
0020 meta_.assign(v.meta().begin(), v.meta().end());
0021 rws_ = v.rows();
0022 affected_rows_ = v.affected_rows();
0023 last_insert_id_ = v.last_insert_id();
0024 warnings_ = v.warning_count();
0025 info_.assign(v.info().begin(), v.info().end());
0026 is_out_params_ = v.is_out_params();
0027 }
0028 else
0029 {
0030 meta_.clear();
0031 rws_ = ::boost::mysql::rows();
0032 affected_rows_ = 0;
0033 last_insert_id_ = 0;
0034 warnings_ = 0;
0035 info_.clear();
0036 is_out_params_ = false;
0037 }
0038 }
0039
0040 #endif