Remove old_sqlite feature

And associated bindgen_3.6.8.rs
This commit is contained in:
gwenn
2022-08-22 18:32:55 +02:00
committed by Thom Chiovoloni
parent 15d56bcb52
commit 6766d6a6cd
15 changed files with 5 additions and 1918 deletions

View File

@@ -796,7 +796,7 @@ impl Statement<'_> {
self.conn.decode_result(stmt.finalize())
}
#[cfg(all(not(feature = "old_sqlite"), feature = "extra_check"))]
#[cfg(feature = "extra_check")]
#[inline]
fn check_update(&self) -> Result<()> {
// sqlite3_column_count works for DML but not for DDL (ie ALTER)
@@ -806,16 +806,6 @@ impl Statement<'_> {
Ok(())
}
#[cfg(all(feature = "old_sqlite", feature = "extra_check"))]
#[inline]
fn check_update(&self) -> Result<()> {
// sqlite3_column_count works for DML but not for DDL (ie ALTER)
if self.column_count() > 0 {
return Err(Error::ExecuteReturnedResults);
}
Ok(())
}
#[cfg(not(feature = "extra_check"))]
#[inline]
#[allow(clippy::unnecessary_wraps)]
@@ -825,8 +815,6 @@ impl Statement<'_> {
/// Returns a string containing the SQL text of prepared statement with
/// bound parameters expanded.
#[cfg(not(feature = "old_sqlite"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "old_sqlite"))))]
pub fn expanded_sql(&self) -> Option<String> {
self.stmt
.expanded_sql()
@@ -1407,7 +1395,6 @@ mod test {
}
#[test]
#[cfg(not(feature = "old_sqlite"))]
fn test_expanded_sql() -> Result<()> {
let db = Connection::open_in_memory()?;
let stmt = db.prepare("SELECT ?")?;