Skip to content

Commit

Permalink
Update error messsages in test output after 2621 changes
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Kasko <[email protected]>
  • Loading branch information
staticlibs committed Jun 9, 2024
1 parent ea5f9a1 commit e6878f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/JDBC/expected/jtds-TestDatetimeoffset-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ INSERT INTO TestDatetimeoffset_vu_prepare_testing VALUES('10000-01-01 00:00:00 +
go
~~ERROR (Code: 33557097)~~

~~ERROR (Message: data out of range for datetimeoffset)~~
~~ERROR (Message: invalid input syntax for type datetimeoffset: "10000-01-01 00:00:00 +0:00")~~


CREATE INDEX TestDatetimeoffset_vu_prepare_idx ON TestDatetimeoffset_vu_prepare_testing (df);
Expand Down
17 changes: 8 additions & 9 deletions test/JDBC/expected/jtds-TestDatetimeoffset-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,9 @@ go
-- Test datetimeoffset value ranges
select cast('0001-01-01 +0' as datetimeoffset);
go
~~START~~
nvarchar
0001-01-01 00:00:00.0000000 +00:00
~~END~~
~~ERROR (Code: 33557097)~~

~~ERROR (Message: invalid input syntax for type datetimeoffset: "0001-01-01 +0")~~

select cast('0001-01-01 -1' as datetimeoffset);
go
Expand All @@ -492,21 +491,21 @@ select cast('0001-01-01 +0 BC' as datetimeoffset);
go
~~ERROR (Code: 33557097)~~

~~ERROR (Message: data out of range for datetimeoffset)~~
~~ERROR (Message: invalid input syntax for type datetimeoffset: "0001-01-01 +0 BC")~~

-- out of range
select cast('0001-01-01 +1' as datetimeoffset);
go
~~ERROR (Code: 33557097)~~

~~ERROR (Message: data out of range for datetimeoffset)~~
~~ERROR (Message: invalid input syntax for type datetimeoffset: "0001-01-01 +1")~~

-- out of range
select cast('0001-01-01 +0:20' as datetimeoffset);
go
~~ERROR (Code: 33557097)~~

~~ERROR (Message: data out of range for datetimeoffset)~~
~~ERROR (Message: invalid input syntax for type datetimeoffset: "0001-01-01 +0:20")~~

-- out of range
select cast('9999-12-31 23:59:29.998 -1' as datetimeoffset);
Expand All @@ -520,7 +519,7 @@ select cast('10000-01-01 00:00' as datetimeoffset);
go
~~ERROR (Code: 33557097)~~

~~ERROR (Message: data out of range for datetimeoffset)~~
~~ERROR (Message: invalid input syntax for type datetimeoffset: "10000-01-01 00:00")~~


-- Testing arithmetic operators
Expand Down Expand Up @@ -853,7 +852,7 @@ exec TestDatetimeoffset_vu_prepare_cast @dto;
go
~~ERROR (Code: 33557097)~~

~~ERROR (Message: data out of range for datetimeoffset)~~
~~ERROR (Message: invalid input syntax for type datetimeoffset: "19200-05-06 13:39:29.123456 +0:00")~~


-- test comparing datetimeoffset inside procedure
Expand Down

0 comments on commit e6878f9

Please sign in to comment.