From a68d6fb8283df1473b2451d628870b3e1bb6e487 Mon Sep 17 00:00:00 2001 From: rbock Date: Thu, 9 Jan 2014 22:33:23 +0100 Subject: [PATCH] Prepared insert/update/delete now work with the mysql connector --- include/sqlpp11/insert.h | 5 +++++ include/sqlpp11/remove.h | 5 +++++ include/sqlpp11/select.h | 5 +++++ include/sqlpp11/update.h | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/include/sqlpp11/insert.h b/include/sqlpp11/insert.h index a2b33d4b..a616fd0a 100644 --- a/include/sqlpp11/insert.h +++ b/include/sqlpp11/insert.h @@ -123,6 +123,11 @@ namespace sqlpp 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 std::size_t run(Db& db) const { diff --git a/include/sqlpp11/remove.h b/include/sqlpp11/remove.h index 856145c8..91b3ce2f 100644 --- a/include/sqlpp11/remove.h +++ b/include/sqlpp11/remove.h @@ -157,6 +157,11 @@ namespace sqlpp 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 std::size_t run(Db& db) const { diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index bfab925b..f384c6fe 100644 --- a/include/sqlpp11/select.h +++ b/include/sqlpp11/select.h @@ -582,6 +582,11 @@ namespace sqlpp 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 { return _result_row_t::static_size(); // FIXME: Need to add the size of dynamic columns diff --git a/include/sqlpp11/update.h b/include/sqlpp11/update.h index 3f245c11..ac21cfd4 100644 --- a/include/sqlpp11/update.h +++ b/include/sqlpp11/update.h @@ -157,6 +157,11 @@ namespace sqlpp 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 std::size_t run(Db& db) const {