statement binding progress
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
namespace matador::backends::postgres {
|
||||
|
||||
postgres_statement::postgres_statement(PGconn *db, std::string name, const sql::query_context &query)
|
||||
: statement_impl(query)
|
||||
: statement_impl(query, 0)
|
||||
, db_(db)
|
||||
, name_(std::move(name))
|
||||
{}
|
||||
@@ -56,8 +56,6 @@ utils::result<std::unique_ptr<sql::query_result_impl>, utils::error> postgres_st
|
||||
return utils::ok(std::make_unique<sql::query_result_impl>(std::make_unique<postgres_result_reader>(res), query_.prototype));
|
||||
}
|
||||
|
||||
void postgres_statement::reset() {}
|
||||
|
||||
std::unique_ptr<utils::attribute_writer> postgres_statement::create_binder() const {
|
||||
return std::make_unique<postgres_parameter_binder>(query_.bind_vars.size());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user