Azure / Azure/data-api-builder

[Bug]: `numeric` data type not supported as a parameter for a stored procedure

オープン
#2,059 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug mssql triage
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

### What happened?

System.Data.Common.SqlDbType
https://learn.microsoft.com/en-us/dotnet/api/system.data.sqldbtype?view=net-8.0
doesn't have a
Numeric
type, thats why we unfortunately see this error. The autodetection is done by querying
sys.dm_exec_describe_first_result_set
which gives back
numeric
from SQL. We will need to handle this discrepancy between these dependencies in DAB explicitly for this and other possible types which may be absent in
System.Data.Common.SqlDataType

image

### Version

main

### What database are you using?

Azure SQL

### What hosting model are you using?

Local (including CLI)

### Which API approach are you accessing DAB through?

REST

### Relevant log output

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、ストアド プロシージャのパラメーター型の自動検出が、sys.dm_exec_describe_first_result_set から DAB で使用される System.Data.Common.SqlDbType のマッピングに至るまでどのように行われるかを追跡します。REST API を通じて Azure SQL のケースを再現し、数値パラメーターを持つプロシージャが受け入れられることを確認します。さらに、他のデータベース型が .NET の enum に存在しないかどうかも確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, csharp, sql
領域
api, databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。