SQLAlchemy 1.x code on 2.x: no error, no row
This story is from 2026-10-19. It is preserved in the archive; the latest stories are on the live feed.
SQLAlchemy 2.0 removed library level autocommit. The migration guide says it plainly: in 1.x, conn.execute(text("INSERT ...")) on a connection from engine.connect() would commit on its own, and in 2.0 "this will not occur". Code written in the 1.x style still looks fine. Here is what it does on sql…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-19 17:09 · DEV Community — AI
SQLAlchemy 1.x code on 2.x: no error, no row