Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rockymadden committed Apr 29, 2024
1 parent baf0a3d commit 5ae126f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/data-types/smalldatetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const SmallDateTime: DataType = {

if (year === 2079) {
// Month is 0-indexed, i.e. Jan = 0, Dec = 11
// See: https://learn.microsoft.com/en-us/sql/t-sql/data-types/smalldatetime-transact-sql?view=sql-server-ver16
if (month > 5 || (month === 5 && date > 6)) {
throw new TypeError('Out of range.');
}
Expand Down

0 comments on commit 5ae126f

Please sign in to comment.