Skip to content

TdsParser: Fatal connection error #3421

Closed
@Kobuntu

Description

@Kobuntu

Describe the bug

When table field named is "List"

System.InvalidOperationException: Fatal connection error.
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlDataReader.TryCloseInternal(Boolean closeReader)
at Microsoft.Data.SqlClient.SqlDataReader.Close()
at Microsoft.Data.SqlClient.SqlDataReader.Dispose(Boolean disposing)
at System.Data.Common.DbDataReader.DisposeAsync()

To reproduce

When field named is "List". If field exclude from query, no exception handing.

SELECT
	[gs].[UserGlobalSet_ID],     <varchar(22)>
	[gs].[User_ID],              <varchar(22)>
	[gs].[List]                  <ntext>                <-- This field !
FROM
	[dbo].[Expl_User_Global_Sets] [gs]

Further technical details

Microsoft.Data.SqlClient version: 6.1.0-preview1.25120.4
.NET: 10.0.0-preview.5
SQL Server version: SQL Server (ver. 15.00.4410)
Operating system: Windows 10

This exception no reprodused on Microsoft.Data.SqlClient version: 6.0.2

Metadata

Metadata

Assignees

Labels

Bug! 🐛Issues that are bugs in the drivers we maintain.P2Use to label moderate priority issue - impacts atleast more than 1 customer.Triage Done ✔️Issues that are triaged by dev team and are in investigation.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions