Skip to content

tSQLt.AssertEqualsTable is not showing whole value for DATETIME2(7) columns #22

Open
@Radamonas

Description

@Radamonas

We were running tests where comparison is made between two tables which store data about date time in DATETIME2(7). It appeared, that then tSQLt.AssertEqualsTable stored procedure is used the output on the mismatches is not presenting all details about, so the "Unexpected/missing resultset rows!" table showing that there are some rows which don't match, but when looking in to output results it is not so obvious what is the difference because values are rounded to seconds while the purpose of the test was to check precision of nanoseconds.

The output example:

m id BoundaryToCreate BaseType Real values
<- 4 19/02/2000 23:59:59 datetime2 19/02/2000 23.59.59.99999
-> 4 19/02/2000 23:59:59 datetime2 19/02/2000 23.59.59.9999999

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions