From 59111b783daad4b357447c12c90d7a5a4ae55d01 Mon Sep 17 00:00:00 2001 From: gwenn Date: Tue, 7 Feb 2017 18:41:14 +0100 Subject: [PATCH] Fix tests with old SQLite version (< 3.8.7) --- src/limits.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/limits.rs b/src/limits.rs index c13ed3d..775beb1 100644 --- a/src/limits.rs +++ b/src/limits.rs @@ -59,7 +59,9 @@ mod test { db.set_limit(Limit::SQLITE_LIMIT_TRIGGER_DEPTH, 32); assert_eq!(32, db.limit(Limit::SQLITE_LIMIT_TRIGGER_DEPTH)); - db.set_limit(Limit::SQLITE_LIMIT_WORKER_THREADS, 2); - assert_eq!(2, db.limit(Limit::SQLITE_LIMIT_WORKER_THREADS)); + if version_number() >= 3008007 { + db.set_limit(Limit::SQLITE_LIMIT_WORKER_THREADS, 2); + assert_eq!(2, db.limit(Limit::SQLITE_LIMIT_WORKER_THREADS)); + } } }