Skip to content

Commit 034d3b2

Browse files
committed
[sqlite] no need for column.class.string_to_binary does nothing anyways
1 parent f1c876c commit 034d3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/arjdbc/sqlite3/adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ def quote(value, column = nil)
218218

219219
if value.kind_of?(String)
220220
column_type = column && column.type
221-
if column_type == :binary && column.class.respond_to?(:string_to_binary)
222-
"x'#{column.class.string_to_binary(value).unpack("H*")[0]}'"
221+
if column_type == :binary
222+
"x'#{value.unpack("H*")[0]}'"
223223
else
224224
super
225225
end

0 commit comments

Comments
 (0)