summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-02-07 00:12:17 +0000
committerJamis Buck <jamis@37signals.com>2005-02-07 00:12:17 +0000
commit372281cf9bef717f3a0b60167bc0fe1a35c6f352 (patch)
tree07a8558018d840c16c4639a95877ea615e25bc25 /lib
parent5a5bd588766ec4d531fd9967faac4832d487f58d (diff)
downloadthird_party-sqlite3-ruby-372281cf9bef717f3a0b60167bc0fe1a35c6f352.tar.gz
third_party-sqlite3-ruby-372281cf9bef717f3a0b60167bc0fe1a35c6f352.tar.xz
third_party-sqlite3-ruby-372281cf9bef717f3a0b60167bc0fe1a35c6f352.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlite3/database.rb2
1 files changed, 1 insertions, 1 deletions
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