Commit 70009e6
Fix arithmetic overflow in query_stats collector (#547)
DMV sys.dm_exec_query_stats returns min_dop, max_dop, and thread
columns as bigint, but our temp table and permanent table used
smallint/integer — causing overflow on INSERT.
Widened to match actual DMV types:
- min_dop, max_dop: smallint -> bigint
- min/max_reserved_threads, min/max_used_threads: integer -> bigint
Includes upgrade script for existing 2.2.0 installations.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c0b1dec commit 70009e6
5 files changed
Lines changed: 1410 additions & 12 deletions
File tree
- install
- publish/Installer/install
- upgrades/2.2.0-to-2.3.0
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
| 205 | + | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
0 commit comments