From 197d1161c3a63c52eee348046f7c62ac1ebf7301 Mon Sep 17 00:00:00 2001 From: gwenn Date: Fri, 21 Apr 2017 21:50:38 +0200 Subject: [PATCH] Field estimatedRows is not available with SQLite 3.7.7 --- src/vtab/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 3e6e39f..3370c87 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -120,7 +120,9 @@ impl IndexInfo { (*self.0).estimatedCost = estimated_ost; } } + /// Estimated number of rows returned + #[cfg(feature = "bundled")] pub fn set_estimated_rows(&mut self, estimated_rows: i64) { unsafe { (*self.0).estimatedRows = estimated_rows; @@ -586,4 +588,5 @@ pub fn mprintf(err_msg: &str) -> *mut c_char { pub mod int_array; #[cfg(feature = "csvtab")] pub mod csvtab; +#[cfg(feature = "bundled")] pub mod series;