From 372281cf9bef717f3a0b60167bc0fe1a35c6f352 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Mon, 7 Feb 2005 00:12:17 +0000 Subject: If 'Native' driver is not found, opening a second database resulted in a NameError because the require would not fail--it would just return false. --- lib/sqlite3/database.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sqlite3/database.rb b/lib/sqlite3/database.rb index 65a8410..4b42936 100644 --- a/lib/sqlite3/database.rb +++ b/lib/sqlite3/database.rb @@ -620,7 +620,7 @@ module SQLite3 break rescue SyntaxError raise - rescue ScriptError, Exception + rescue ScriptError, Exception, NameError end end raise "no driver for sqlite3 found" unless driver -- cgit