Updated return types for executing custom queries

This commit is contained in:
rbock
2015-03-08 21:06:30 +01:00
parent 4981b1962c
commit 3ca69bf8b8
3 changed files with 11 additions and 6 deletions

View File

@@ -53,13 +53,13 @@ namespace sqlpp
// Execute
template<typename Db, typename Composite>
auto _run(Db& db, const Composite& composite) const -> void
auto _run(Db& db, const Composite& composite) const -> size_t
{
return db.execute(composite);
}
template<typename Db>
auto _run(Db& db) const -> void
auto _run(Db& db) const -> size_t
{
return db.execute(_get_statement());
}

View File

@@ -45,7 +45,7 @@ namespace sqlpp
using _run_check = consistent_t;
auto _run(Db& db) const
-> void
-> size_t
{
return db.run_prepared_execute(*this);
}