finished statement cache class
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include "matador/sql/query_result.hpp"
|
||||
|
||||
#include "matador/sql/interface/statement_proxy.hpp"
|
||||
#include "matador/sql/interface/parameter_binder.hpp"
|
||||
|
||||
#include "matador/utils/error.hpp"
|
||||
#include "matador/utils/result.hpp"
|
||||
@@ -122,6 +121,8 @@ public:
|
||||
*/
|
||||
void reset() const;
|
||||
|
||||
[[nodiscard]] std::string sql() const;
|
||||
|
||||
private:
|
||||
template<class Type>
|
||||
friend class detail::identifier_binder;
|
||||
@@ -140,7 +141,7 @@ statement &statement::bind(size_t pos, Type &value) {
|
||||
|
||||
template<class Type>
|
||||
statement &statement::bind(const Type &obj) {
|
||||
statement_proxy_->bind(obj, bindings_);
|
||||
statement_proxy_->bind(obj, *bindings_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user