mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Avoid use of numeric indexing on SQLite3::ResultSet::HashWithTypesAndFields
This commit is contained in:
parent
d12449a983
commit
060eb44497
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ class HTTP::CookieJar
|
|||
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue