gh-129928: Raise more accurate exception for incorrect sqlite3 UDF cr… · StanFromIreland/cpython@3a2e7aa · GitHub
Skip to content

Commit 3a2e7aa

Browse files
pythongh-129928: Raise more accurate exception for incorrect sqlite3 UDF creation (python#129941)
Consistently raise ProgrammingError if the user tries to create an UDF with an invalid number of parameters.
1 parent 0dbe543 commit 3a2e7aa

3 files changed

Lines changed: 29 additions & 6 deletions

File tree

Lib/test/test_sqlite3/test_userfunctions.py

Lines changed: 4 additions & 5 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Raise :exc:`sqlite3.ProgrammingError` if a user-defined SQL function with
2+
invalid number of parameters is created. Patch by Erlend Aasland.

Modules/_sqlite/connection.c

Lines changed: 23 additions & 1 deletion

0 commit comments

Comments
 (0)