diff --git a/include/sqlpp11/statement.h b/include/sqlpp11/statement.h index e0d48437..6f6f5afc 100644 --- a/include/sqlpp11/statement.h +++ b/include/sqlpp11/statement.h @@ -189,6 +189,19 @@ namespace sqlpp (void) swallow{(Policies::template _methods_t>::_check_consistency(), 0)...}; } + template + auto _run(Database& db) const -> decltype(std::declval<_result_methods_t>()._run(db)) + { + return _result_methods_t::_run(db); + } + + template + auto _prepare(Database& db) const -> decltype(std::declval<_result_methods_t>()._prepare(db)) + { + return _result_methods_t::_prepare(db); + } + + };