We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9227d05 commit 42e3899Copy full SHA for 42e3899
README.rst
@@ -103,10 +103,10 @@ Enabling autocommit
103
.. code-block:: py3
104
105
# Make sure we're not in a transaction
106
- con.rollback()
107
- con.autocommit = True
108
- con.run("VACUUM")
109
- con.autocommit = False
+ conn.rollback()
+ conn.autocommit = True
+ conn.run("VACUUM")
+ conn.autocommit = False
110
111
112
Configuring cursor paramstyle
@@ -237,7 +237,7 @@ Insert data stored in a ``pandas.DataFrame`` into an Amazon Redshift table
237
),
238
columns=["bookname", "author"],
239
)
240
- with con.cursor() as cursor:
+ with conn.cursor() as cursor:
241
cursor.write_dataframe(df, "book")
242
cursor.execute("select * from book; ")
243
result = cursor.fetchall()
0 commit comments