Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlServer: Translate TimeSpan members #19774

Merged
merged 9 commits into from
Feb 19, 2020

Conversation

aleksandar-manukov
Copy link
Contributor

This PR is related to the issue #19632 .

The following translations are enabled:

.NET Sql
timeSpan.Hours DATEPART(hour, @timeSpan)
timeSpan.Minutes DATEPART(minute, @timeSpan)
timeSpan.Seconds DATEPART(second, @timeSpan)
timeSpan.Milliseconds DATEPART(millisecond, @timeSpan)

@dnfclas
Copy link

dnfclas commented Feb 2, 2020

CLA assistant check
All CLA requirements met.

@@ -148,6 +148,54 @@ public override async Task Byte_array_filter_by_SequenceEqual(bool async)
WHERE ""s"".""Banner5"" = @__byteArrayParam_0");
}

[ConditionalTheory(Skip = "PR #19774")]
public override Task TimeSpan_Hours(bool async)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can use expression-bodied method for all these (even on same line if it fits)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done 😉

@bricelam
Copy link
Contributor

Why didn't Cosmos fail? Is the whole class skipped there?

@smitpatel
Copy link
Member

Why didn't Cosmos fail? Is the whole class skipped there?

Yes. Cosmos does not implement gearsofwar tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants