mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Fixed regressions occurring in sqlpp11-connector-mysql
This commit is contained in:
parent
e629086e72
commit
38e5b21dbe
@ -52,6 +52,11 @@ namespace sqlpp
|
||||
{
|
||||
return _dynamic_columns.empty();
|
||||
}
|
||||
|
||||
auto size() -> size_t
|
||||
{
|
||||
return _dynamic_columns.size();
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
@ -64,6 +69,11 @@ namespace sqlpp
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static constexpr auto size() -> size_t
|
||||
{
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
template <typename Context, typename Db>
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include <sqlpp11/simple_column.h>
|
||||
#include <sqlpp11/no_data.h>
|
||||
#include <sqlpp11/policy_update.h>
|
||||
#include <sqlpp11/statement.h>
|
||||
|
||||
namespace sqlpp
|
||||
{
|
||||
|
@ -264,7 +264,7 @@ namespace sqlpp
|
||||
|
||||
size_t get_no_of_result_columns() const
|
||||
{
|
||||
return sizeof...(Columns) + get_dynamic_names().size();
|
||||
return sizeof...(Columns) + _get_statement().get_selected_columns()._data._dynamic_columns.size();
|
||||
}
|
||||
|
||||
// Execute
|
||||
|
Loading…
Reference in New Issue
Block a user