Commit b391db9
committed
Avoid redundant JSON to string conversion
When creating the param definition, the JSON payload was converted to string.
And then converted again when encoding the param.
In fact, MSSQL allows to send JSON as NVARCHAR(MAX) regardless of the size.
And then we can have a single conversion when encoding the param.
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>1 parent 963e8d3 commit b391db9
1 file changed
Lines changed: 14 additions & 9 deletions
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | 876 | | |
882 | 877 | | |
883 | 878 | | |
| |||
995 | 990 | | |
996 | 991 | | |
997 | 992 | | |
998 | | - | |
999 | | - | |
| 993 | + | |
1000 | 994 | | |
1001 | 995 | | |
1002 | 996 | | |
1003 | 997 | | |
1004 | | - | |
1005 | | - | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| |||
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
1215 | 1220 | | |
0 commit comments