Request for Implementation of DbException.SqlState and DbException.IsTransient in System.Data.Odbc

Open
#96,849 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
databases

Research direction

Start by reading the two linked runtime issues and locating System.Data.Odbc's OdbcException alongside DbException. Trace how OdbcError currently exposes SqlState and determine the intended behavior for SqlState and IsTransient. Done means OdbcException implements both newly introduced DbException properties consistently with that guidance.

Written by the indexing model from the issue text.

Description

area-System.Data.Odbc enhancement

Enhance System.Data.Odbc's OdbcException by implementing the newly introduced properties, SqlState and IsTransient, in DbException.
While the Error property of OdbcException currently allows accessing SqlState through OdbcError, directly exposing it through SqlState property in DbException would provide a more streamlined access to these properties.

https://github.com/dotnet/runtime/issues/34817
https://github.com/dotnet/runtime/issues/35601

@roji

Dominant language
C#
Stars
18.3k
Forks
5.6k
Avg merge
2d 19h
Merged PRs (30d)
589

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.