Skip to content

Commit

Permalink
Try autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-finley committed Apr 11, 2024
1 parent 8cec286 commit 768758b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions queue_files/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def run(event, context):
"SELECT dropbox_cursor from dropbox_cursors order by created_at desc limit 1"
)
conn = psycopg.connect(os.environ["NEON_DATABASE_URL"])
conn.autocommit = True
with conn.cursor() as cursor:
cursor.execute(query)
old_cursor = cursor.fetchone()[0]
Expand Down

0 comments on commit 768758b

Please sign in to comment.