From 060eb44497be16752f659befe49c2732e87c7385 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Wed, 25 May 2022 15:37:48 +0900 Subject: [PATCH] Avoid use of numeric indexing on SQLite3::ResultSet::HashWithTypesAndFields --- lib/http/cookie_jar/mozilla_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/cookie_jar/mozilla_store.rb b/lib/http/cookie_jar/mozilla_store.rb index 8cb2a6a..03433a7 100644 --- a/lib/http/cookie_jar/mozilla_store.rb +++ b/lib/http/cookie_jar/mozilla_store.rb @@ -136,7 +136,7 @@ def closed? # Returns the schema version of the database. def schema_version - @schema_version ||= @db.execute("PRAGMA user_version").first[0] + @schema_version ||= @db.execute("PRAGMA user_version").first["user_version"] rescue SQLite3::SQLException @logger.warn "couldn't get schema version!" if @logger return nil