the required sqlite3 adapter responds to encoding, so stop checking.
This commit is contained in:
parent
30f0d7bac8
commit
8523784265
@ -47,11 +47,7 @@ def quote(value, column = nil)
|
|||||||
|
|
||||||
# Returns the current database encoding format as a string, eg: 'UTF-8'
|
# Returns the current database encoding format as a string, eg: 'UTF-8'
|
||||||
def encoding
|
def encoding
|
||||||
if @connection.respond_to?(:encoding)
|
|
||||||
@connection.encoding.to_s
|
@connection.encoding.to_s
|
||||||
else
|
|
||||||
@connection.execute('PRAGMA encoding')[0]['encoding']
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user