fixed delete_query_builder.hpp
This commit is contained in:
parent
2e1b583741
commit
85e6ee4b93
|
|
@ -12,6 +12,7 @@
|
|||
#include "matador/query/query_builder_exception.hpp"
|
||||
#include "matador/query/query_builder_utils.hpp"
|
||||
|
||||
#include "matador/sql/internal/identifier_statement_binder.hpp"
|
||||
#include "matador/sql/execute_result.hpp"
|
||||
#include "matador/sql/statement.hpp"
|
||||
|
||||
|
|
@ -38,7 +39,10 @@ public:
|
|||
return utils::failure(utils::error{error_code::InvalidObject, "Object is null"});
|
||||
}
|
||||
|
||||
if (const auto result = stmt.bind(0, id_).execute(); !result.is_ok()) {
|
||||
sql::identifier_statement_binder binder(stmt, 0);
|
||||
binder.bind(id_);
|
||||
|
||||
if (const auto result = stmt.execute(); !result.is_ok()) {
|
||||
return utils::failure(result.err());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue