From 75c0fe349ac17ef02890e85b184f2d1f82787b97 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 15 Dec 2018 11:53:41 +0100 Subject: [PATCH] Add xShadowName only if `bundled` or `vtab_v3` activated --- Cargo.toml | 2 ++ src/vtab/mod.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1f91517..f21e575 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,8 @@ sqlcipher = ["libsqlite3-sys/sqlcipher"] unlock_notify = ["libsqlite3-sys/unlock_notify"] # xSavepoint, xRelease and xRollbackTo: 3.7.7 (2011-06-23) vtab = ["libsqlite3-sys/min_sqlite_version_3_7_7", "lazy_static"] +# xShadowName: 3.26.0 +vtab_v3 = ["vtab"] csvtab = ["csv", "vtab"] # pointer passing interfaces: 3.20.0 array = ["vtab"] diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index ad0c924..e58616f 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -99,6 +99,7 @@ pub fn read_only_module(version: c_int) -> Module { xSavepoint: None, xRelease: None, xRollbackTo: None, + #[cfg(any(feature = "bundled", feature = "vtab_v3"))] xShadowName: None, }; Module { @@ -138,6 +139,7 @@ pub fn eponymous_only_module(version: c_int) -> Module { xSavepoint: None, xRelease: None, xRollbackTo: None, + #[cfg(any(feature = "bundled", feature = "vtab_v3"))] xShadowName: None, }; Module {