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

Return empty DataTable from GetSchemaTable. #419

Merged
merged 3 commits into from Feb 13, 2020

Conversation

ErikEJ
Copy link
Contributor

@ErikEJ ErikEJ commented Feb 10, 2020

Remove unused code from DataReaderTest

fixes #417

Remove unused code from DataReaderTest

fixes dotnet#417
@cheenamalhotra cheenamalhotra added this to the 2.0.0-preview2 milestone Feb 10, 2020
@cheenamalhotra cheenamalhotra added this to In progress in SqlClient v2.0.0 via automation Feb 10, 2020
@cheenamalhotra cheenamalhotra added the 🔨 Breaking Change Use this label for breaking API changes in the driver. label Feb 11, 2020
SqlClient v2.0.0 automation moved this from In progress to Reviewer approved Feb 11, 2020
@cheenamalhotra cheenamalhotra merged commit 2edfd2a into dotnet:master Feb 13, 2020
SqlClient v2.0.0 automation moved this from Reviewer approved to Done Feb 13, 2020
@@ -65,7 +64,25 @@ public static void MultiQuerySchema()
}
}

[CheckConnStrSetupFact]
public static void GetSchemaTable_returns_null_when_no_resultset()
Copy link
Member

Choose a reason for hiding this comment

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

Test name is inversed :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh!

Copy link
Member

Choose a reason for hiding this comment

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

Another possible note is the returned table should have no rows, but should still have the columns it has when there are rows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Breaking Change Use this label for breaking API changes in the driver.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Change DbDataReader.{GetSchemaTable,GetColumnSchema} to return empty results when there is no resultset
4 participants