Skip to content

Commit 9d71f41

Browse files
committed
Introduce a new bind_block method.
Provides the expected :aN formatted bind parameter values needed by oci8. Thanks to dlaggero for this. #2424 (comment)
1 parent f503e01 commit 9d71f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/arel/visitors/oracle_common.rb

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
module Arel # :nodoc: all
44
module Visitors
55
module OracleCommon
6+
7+
BIND_BLOCK = proc { |i| ":a#{i}" }
8+
private_constant :BIND_BLOCK
9+
10+
def bind_block; BIND_BLOCK; end
11+
612
private
713
# Oracle can't compare CLOB columns with standard SQL operators for comparison.
814
# We need to replace standard equality for text/binary columns to use DBMS_LOB.COMPARE function.

0 commit comments

Comments
 (0)