Commit 2a87b57
authored
Improve ToTraceString
Fixes some annoying issues with the query generated by `ToTraceString`:
- `tinyint` and `xml` data formats have a width specifier (1 and -1 respectively), but MSSQL doesn't recognize it in input
- date/time parameters are printed in local formats, which may or may not be accepted by the server
- parameter values aren't escaped if they contain `'`1 parent 37a6ae5 commit 2a87b57
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
156 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
157 | 171 | | |
158 | 172 | | |
159 | 173 | | |
| |||
0 commit comments