diff --git a/src/named_params.rs b/src/named_params.rs index 81b6bd7..424fac5 100644 --- a/src/named_params.rs +++ b/src/named_params.rs @@ -84,7 +84,7 @@ impl<'conn> Statement<'conn> { /// which case `query` should be used instead), or the underling SQLite call fails. pub fn execute_named(&mut self, params: &[(&str, &ToSql)]) -> Result { try!(self.bind_parameters_named(params)); - self.execute_() + self.execute_with_bound_parameters() } /// Execute the prepared statement with named parameter(s), returning a handle for the diff --git a/src/statement.rs b/src/statement.rs index f64a40c..ba93870 100644 --- a/src/statement.rs +++ b/src/statement.rs @@ -76,7 +76,7 @@ impl<'conn> Statement<'conn> { /// which case `query` should be used instead), or the underling SQLite call fails. pub fn execute(&mut self, params: &[&ToSql]) -> Result { try!(self.bind_parameters(params)); - self.execute_() + self.execute_with_bound_parameters() } /// Execute the prepared statement, returning a handle to the resulting rows. @@ -229,7 +229,7 @@ impl<'conn> Drop for Statement<'conn> { // once pub(crate) is stable. pub trait StatementCrateImpl<'conn> { fn new(conn: &'conn Connection, stmt: RawStatement) -> Self; - fn execute_(&mut self) -> Result; + fn execute_with_bound_parameters(&mut self) -> Result; fn bind_parameter(&self, param: &ToSql, col: c_int) -> Result<()>; fn bind_parameter_index(&self, name: &CStr) -> Option; fn last_insert_rowid(&self) -> i64; @@ -246,7 +246,7 @@ impl<'conn> StatementCrateImpl<'conn> for Statement<'conn> { } } - fn execute_(&mut self) -> Result { + fn execute_with_bound_parameters(&mut self) -> Result { let r = self.stmt.step(); self.stmt.reset(); match r {