Skip to content

Commit 863dcb0

Browse files
authored
Merge pull request #1021 from aidanharan/freeze-sql-for-instrumentation
Freeze the SQL sent to instrumentation
2 parents a798480 + 82b378f commit 863dcb0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased
2+
3+
- [#1021](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1021) Freeze the SQL sent to instrumentation.
4+
15
## v7.0.0.0
26

37
[Full changelog](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/compare/v7.0.0.0.rc1...v7.0.0.0)

lib/active_record/connection_adapters/sqlserver/database_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def sp_executesql_sql(sql, types, params, name)
360360
sql = "EXEC sp_executesql #{quote(sql)}"
361361
sql += ", #{types}, #{params}" unless params.empty?
362362
end
363-
sql
363+
sql.freeze
364364
end
365365

366366
def raw_connection_do(sql)

0 commit comments

Comments
 (0)