microsoft / microsoft/mssql-python

Implement callproc() for full DB-API 2.0 compliance

Đang mở
#515 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

@gargsaumya đang làm issue này rồi.

Từ ngày 10/8/2026.

area: api-compliance enhancement
Ngôn ngữ chính
Python
Star
473
Fork
60
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
36

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.