tediousjs / tedious

Node TDS module for connecting to SQL Server databases.
http://tediousjs.github.io/tedious/
MIT License
1.56k stars 443 forks source link

feat: add range error validation for datatypes #1594

Closed MichaelSun90 closed 5 months ago

MichaelSun90 commented 6 months ago

Add range error check for datatypes:

Adds validate tests for datatypes:

Referenced the changes from this PR: #1271 : fix: out-of-range date error handle Referenced the changes from PR #815 for money validation

codecov[bot] commented 6 months ago

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (6a961b5) 78.24% compared to head (8598f04) 66.05%.

Files Patch % Lines
src/data-types/date.ts 42.85% 2 Missing and 2 partials :warning:
src/data-types/datetime.ts 42.85% 2 Missing and 2 partials :warning:
src/data-types/datetime2.ts 42.85% 2 Missing and 2 partials :warning:
src/data-types/datetimeoffset.ts 42.85% 2 Missing and 2 partials :warning:
src/data-types/smalldatetime.ts 42.85% 2 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1594 +/- ## =========================================== - Coverage 78.24% 66.05% -12.19% =========================================== Files 93 93 Lines 4821 4858 +37 Branches 921 932 +11 =========================================== - Hits 3772 3209 -563 - Misses 750 1245 +495 - Partials 299 404 +105 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 5 months ago

:tada: This PR is included in version 16.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: