microsoft / microsoft/mssql-python

Implement callproc() for full DB-API 2.0 compliance

Offen
#515 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@gargsaumya arbeitet bereits daran.

Seit 10.8.2026.

area: api-compliance enhancement
Vorherrschende Sprache
Python
Sterne
472
Forks
60
Ø Merge
2 T. 11 Std.
Gemergte PRs (30 T.)
36

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.