aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/bind_param.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/arel/nodes/bind_param.rb b/lib/arel/nodes/bind_param.rb
index 9e297831cd..d55f4c1c8e 100644
--- a/lib/arel/nodes/bind_param.rb
+++ b/lib/arel/nodes/bind_param.rb
@@ -2,8 +2,16 @@
module Arel
module Nodes
class BindParam < Node
+ attr_reader :value
+
+ def initialize(value)
+ @value = value
+ super()
+ end
+
def ==(other)
- other.is_a?(BindParam)
+ other.is_a?(BindParam) &&
+ value == other.value
end
end
end