Skip to content

Commit 3346597

Browse files
committed
Use the exact range rather than adjusting each time.
1 parent 59be98d commit 3346597

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

postgresql/driver/pq3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,8 +1916,8 @@ def __init__(self, ident, database, description = ()):
19161916
proctup['_proid'],
19171917
# ($1::type, $2::type, ... $n::type)
19181918
', '.join([
1919-
'$%d::%s' %(x + 1, database.typio.sql_type_from_oid(proargs[x]))
1920-
for x in range(len(proargs))
1919+
'$%d::%s' %(x, database.typio.sql_type_from_oid(proargs[x]))
1920+
for x in range(1, len(proargs)+1)
19211921
]),
19221922
# Description for anonymous record returns
19231923
(description and \

0 commit comments

Comments
 (0)