File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
lib/active_record/connection_adapters/sqlserver Expand file tree Collapse file tree 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)
4343
4444 # Returns the affected rows from results.
4545 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 )
4748 end
4849
4950 # 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)
772772 lowercase_schema_reflection ? "LOWER(#{ node } )" : node
773773 end
774774
775- def lowercase_schema_reflection_string ( str )
776- lowercase_schema_reflection ? str . downcase : str
777- end
778-
779775 # === SQLServer Specific (View Reflection) ====================== #
780776
781777 def view_table_name ( table_name )
Original file line number Diff line number Diff line change @@ -85,10 +85,6 @@ def temporary_table?
8585 object . start_with? ( "#" )
8686 end
8787
88- # def temporary_database
89- # "TEMPDB"
90- # end
91-
9288 protected
9389
9490 def parse_raw_name
You can’t perform that action at this time.
0 commit comments