ArgumentOutOfRange when datasource starts with comma #3110
Labels
🐛 Bug!
Issues that are bugs in the drivers we maintain.
🆕 Triage Needed
For new issues, not triaged yet.
Describe the bug
When a connection string's data source starts with a comma, a ArgumentOutOfRangeException is thrown. Here is the stack trace:
To reproduce
Very easy to reproducte:
Expected behavior
I think ideally either the comma should be accepted or a more explanatory "invalid data source" should be returned.
Further technical details
Microsoft.Data.SqlClient version: 6.0.0-preview3.24332.3
.NET target: .NET 8
SQL Server version: n/a (exception happens before connection is even attempted)
Operating system: Windows 11 (Version 10.0.26100 Build 26100)
The text was updated successfully, but these errors were encountered: