Skip to content

Commit 42e3899

Browse files
fix(docs): change variable names from con to conn (#139)
1 parent 9227d05 commit 42e3899

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ Enabling autocommit
103103
.. code-block:: py3
104104
105105
# Make sure we're not in a transaction
106-
con.rollback()
107-
con.autocommit = True
108-
con.run("VACUUM")
109-
con.autocommit = False
106+
conn.rollback()
107+
conn.autocommit = True
108+
conn.run("VACUUM")
109+
conn.autocommit = False
110110
111111
112112
Configuring cursor paramstyle
@@ -237,7 +237,7 @@ Insert data stored in a ``pandas.DataFrame`` into an Amazon Redshift table
237237
),
238238
columns=["bookname", "author‎"],
239239
)
240-
with con.cursor() as cursor:
240+
with conn.cursor() as cursor:
241241
cursor.write_dataframe(df, "book")
242242
cursor.execute("select * from book; ")
243243
result = cursor.fetchall()

0 commit comments

Comments
 (0)