Skip to content

Commit a408862

Browse files
committed
docs(paramstyle, named): fix example
1 parent e480919 commit a408862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ The paramstyle for a cursor can be modified via ``cursor.paramstyle``. The defau
119119
# named
120120
redshift_connector.paramstyle = 'named'
121121
sql = 'insert into foo(bar, jar) VALUES(:p1, :p2)'
122-
cursor.execute(sql, p1=1, p2="hello world")
122+
cursor.execute(sql, {"p1":1, "p2":"hello world"})
123123
124124
# format
125125
redshift_connector.paramstyle = 'format'

0 commit comments

Comments
 (0)