File tree 3 files changed +11
-17
lines changed
activerecord/lib/active_record/connection_adapters
3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -659,6 +659,17 @@ def check_version # :nodoc:
659
659
end
660
660
end
661
661
662
+ #--
663
+ # QUOTING ==================================================
664
+ #++
665
+
666
+ # Quotes strings for use in SQL input.
667
+ def quote_string ( string )
668
+ with_raw_connection ( allow_retry : true , materialize_transactions : false ) do |connection |
669
+ connection . escape ( string )
670
+ end
671
+ end
672
+
662
673
class << self
663
674
def extended_type_map ( default_timezone : nil , emulate_booleans :) # :nodoc:
664
675
super ( default_timezone : default_timezone ) . tap do |m |
Original file line number Diff line number Diff line change @@ -115,17 +115,6 @@ def error_number(exception)
115
115
exception . error_number if exception . respond_to? ( :error_number )
116
116
end
117
117
118
- #--
119
- # QUOTING ==================================================
120
- #++
121
-
122
- # Quotes strings for use in SQL input.
123
- def quote_string ( string )
124
- with_raw_connection ( allow_retry : true , materialize_transactions : false ) do |connection |
125
- connection . escape ( string )
126
- end
127
- end
128
-
129
118
#--
130
119
# CONNECTION MANAGEMENT ====================================
131
120
#++
Original file line number Diff line number Diff line change @@ -116,12 +116,6 @@ def supports_lazy_transactions?
116
116
true
117
117
end
118
118
119
- def quote_string ( string )
120
- with_raw_connection ( allow_retry : true , materialize_transactions : false ) do |conn |
121
- conn . escape ( string )
122
- end
123
- end
124
-
125
119
def connected?
126
120
!( @raw_connection . nil? || @raw_connection . closed? )
127
121
end
You can’t perform that action at this time.
0 commit comments