Commit 6e95673
Fix datepart argument parsing in date functions with AGENTS files (#201)
* Add support for DATEADD, DATEDIFF, and related functions; normalize parameters in function calls
* Add comprehensive tests for DATEPART and related functions; include various arities and edge cases
Co-authored-by: Copilot <copilot@github.com>
---------
Co-authored-by: Aasim Khan <aasimkhan@gmail.com>
Co-authored-by: Copilot <copilot@github.com>1 parent 67f9eab commit 6e95673
17 files changed
Lines changed: 251 additions & 1 deletion
File tree
- SqlScriptDom/Parser/TSql
- Test/SqlDom
- Baselines160
- TestScripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
296 | 298 | | |
| 299 | + | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
| 304 | + | |
| 305 | + | |
300 | 306 | | |
301 | 307 | | |
302 | 308 | | |
| 309 | + | |
303 | 310 | | |
304 | 311 | | |
305 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20874 | 20874 | | |
20875 | 20875 | | |
20876 | 20876 | | |
| 20877 | + | |
| 20878 | + | |
| 20879 | + | |
20877 | 20880 | | |
20878 | 20881 | | |
20879 | 20882 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23849 | 23849 | | |
23850 | 23850 | | |
23851 | 23851 | | |
| 23852 | + | |
| 23853 | + | |
| 23854 | + | |
23852 | 23855 | | |
23853 | 23856 | | |
23854 | 23857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24598 | 24598 | | |
24599 | 24599 | | |
24600 | 24600 | | |
| 24601 | + | |
| 24602 | + | |
| 24603 | + | |
24601 | 24604 | | |
24602 | 24605 | | |
24603 | 24606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29420 | 29420 | | |
29421 | 29421 | | |
29422 | 29422 | | |
| 29423 | + | |
| 29424 | + | |
| 29425 | + | |
29423 | 29426 | | |
29424 | 29427 | | |
29425 | 29428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30253 | 30253 | | |
30254 | 30254 | | |
30255 | 30255 | | |
| 30256 | + | |
| 30257 | + | |
| 30258 | + | |
30256 | 30259 | | |
30257 | 30260 | | |
30258 | 30261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31406 | 31406 | | |
31407 | 31407 | | |
31408 | 31408 | | |
| 31409 | + | |
| 31410 | + | |
| 31411 | + | |
31409 | 31412 | | |
31410 | 31413 | | |
31411 | 31414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32218 | 32218 | | |
32219 | 32219 | | |
32220 | 32220 | | |
| 32221 | + | |
| 32222 | + | |
| 32223 | + | |
32221 | 32224 | | |
32222 | 32225 | | |
32223 | 32226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33346 | 33346 | | |
33347 | 33347 | | |
33348 | 33348 | | |
| 33349 | + | |
| 33350 | + | |
| 33351 | + | |
33349 | 33352 | | |
33350 | 33353 | | |
33351 | 33354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33346 | 33346 | | |
33347 | 33347 | | |
33348 | 33348 | | |
| 33349 | + | |
| 33350 | + | |
| 33351 | + | |
33349 | 33352 | | |
33350 | 33353 | | |
33351 | 33354 | | |
| |||
0 commit comments