File tree 3 files changed +2
-9
lines changed
lib/active_record/connection_adapters/sqlserver
3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ def cast_result(raw_result)
43
43
44
44
# Returns the affected rows from results.
45
45
def affected_rows ( raw_result )
46
- raw_result &.first &.fetch ( lowercase_schema_reflection_string ( "AffectedRows" ) , nil )
46
+ column_name = lowercase_schema_reflection ? "affectedrows" : "AffectedRows"
47
+ raw_result &.first &.fetch ( column_name , nil )
47
48
end
48
49
49
50
# Returns the affected rows from results or handle.
Original file line number Diff line number Diff line change @@ -772,10 +772,6 @@ def lowercase_schema_reflection_sql(node)
772
772
lowercase_schema_reflection ? "LOWER(#{ node } )" : node
773
773
end
774
774
775
- def lowercase_schema_reflection_string ( str )
776
- lowercase_schema_reflection ? str . downcase : str
777
- end
778
-
779
775
# === SQLServer Specific (View Reflection) ====================== #
780
776
781
777
def view_table_name ( table_name )
Original file line number Diff line number Diff line change @@ -85,10 +85,6 @@ def temporary_table?
85
85
object . start_with? ( "#" )
86
86
end
87
87
88
- # def temporary_database
89
- # "TEMPDB"
90
- # end
91
-
92
88
protected
93
89
94
90
def parse_raw_name
You can’t perform that action at this time.
0 commit comments