Skip to content

Commit 0f9dd0c

Browse files
committed
override #sturcture_dump so it won't silently return while doing nothing
1 parent a57b89f commit 0f9dd0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/arjdbc/jdbc/adapter.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ def self.bind_substitution(visitor); visitor; end
195195
def bind_substitution(visitor); self.class.bind_substitution(visitor); end
196196
private :bind_substitution
197197

198+
# @override default implementation (does nothing silently)
199+
def structure_dump
200+
raise NotImplementedError, "structure_dump not supported"
201+
end
202+
198203
def is_a?(klass) # :nodoc:
199204
# This is to fake out current_adapter? conditional logic in AR tests
200205
if Class === klass && klass.name =~ /#{adapter_name}Adapter$/i

0 commit comments

Comments
 (0)