Skip to content

Commit

Permalink
Merge pull request #3 from bdeboe/master
Browse files Browse the repository at this point in the history
Fix missing arg in README.md
  • Loading branch information
evshvarov authored Oct 25, 2023
2 parents 57f2016 + 70448cf commit c24315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ config = {

with dbapi.connect(**config) as conn:
with conn.cursor() as cursor:
cursor.execute("select ? as one, 2 as two")
cursor.execute("select ? as one, 2 as two", 1) # second arg is parameter value
for row in cursor:
one, two = row
print(f"one: {one}")
Expand Down

0 comments on commit c24315c

Please sign in to comment.