Azure / Azure/data-api-builder

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

Aperta
#2,059 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug mssql triage
Lingua principale
C#
Stelle
1.5k
Fork
370
Merge medio
3g 22h
PR unite (30g)
9

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Iniziare tracciando l’autodetect del tipo dei parametri delle stored procedure da sys.dm_exec_describe_first_result_set alla mappatura System.Data.Common.SqlDbType utilizzata da DAB. Riprodurre il caso Azure SQL tramite la REST API e verificare che una procedura con un parametro numerico venga accettata; verificare inoltre se altri tipi di database sono assenti dall’enum .NET.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, csharp, sql
Ambito
api, databases
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.