0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Prepared insert/update/delete now work with the mysql connector

This commit is contained in:
rbock 2014-01-09 22:33:23 +01:00
parent 121f56549b
commit a68d6fb828
4 changed files with 20 additions and 0 deletions

View File

@ -123,6 +123,11 @@ namespace sqlpp
return _parameter_list_t::size::value; return _parameter_list_t::size::value;
} }
size_t _get_no_of_parameters()
{
return _parameter_list_t::size::value; // FIXME: Need to add dynamic parameters here
}
template<typename Db> template<typename Db>
std::size_t run(Db& db) const std::size_t run(Db& db) const
{ {

View File

@ -157,6 +157,11 @@ namespace sqlpp
return _parameter_list_t::size::value; return _parameter_list_t::size::value;
} }
size_t _get_no_of_parameters()
{
return _parameter_list_t::size::value; // FIXME: Need to add dynamic parameters here
}
template<typename Db> template<typename Db>
std::size_t run(Db& db) const std::size_t run(Db& db) const
{ {

View File

@ -582,6 +582,11 @@ namespace sqlpp
return _parameter_list_t::size::value; return _parameter_list_t::size::value;
} }
size_t _get_no_of_parameters()
{
return _parameter_list_t::size::value; // FIXME: Need to add dynamic parameters here
}
size_t get_no_of_result_columns() const size_t get_no_of_result_columns() const
{ {
return _result_row_t::static_size(); // FIXME: Need to add the size of dynamic columns return _result_row_t::static_size(); // FIXME: Need to add the size of dynamic columns

View File

@ -157,6 +157,11 @@ namespace sqlpp
return _parameter_list_t::size::value; return _parameter_list_t::size::value;
} }
size_t _get_no_of_parameters()
{
return _parameter_list_t::size::value; // FIXME: Need to add dynamic parameters here
}
template<typename Db> template<typename Db>
std::size_t run(Db& db) const std::size_t run(Db& db) const
{ {