microsoft / microsoft/mssql-python
Implement callproc() for full DB-API 2.0 compliance
Aperta
@gargsaumya ci sta già lavorando.
Dal 10/8/2026.
area: api-compliance
enhancement
- Lingua principale
- Python
- Stelle
- 472
- Fork
- 60
- Merge medio
- 2g 11h
- PR unite (30g)
- 36
Descrizione
Summary
callproc() currently raises NotSupportedError. It is the only remaining gap to full PEP 249 (DB-API 2.0) cursor interface compliance.
Current behavior
cursor.callproc('dbo.my_proc', [1, 'abc'])
# Raises: NotSupportedError
Workaround
Users must use cursor.execute() with either EXEC or the ODBC {CALL ...} escape sequence:
cursor.execute('{CALL dbo.my_proc(?, ?)}', [1, 'abc'])
Expected behavior
callproc() should execute a stored procedure and return modified copies of the input parameters, per the PEP 249 specification.
Impact
The driver currently reports apilevel = '2.0' and the cursor interface is listed as "Mostly compliant" solely because of this gap.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.