Boris SABATIER <
sabatie...@gmail.com> wrote:
> @Michael:
> Are you sure the default value of isolation_level is None ?
OK what I forgot to clarify in my other email is that you’re working with
“connect_args” here, which with engine_from_config would not be a separate
.ini value in any case; things that go into create_engine()->connect_args
are supposed to be in the query string. So the isolation_level you’re
talking about here isn’t SQLAlchemy’s version of this, it’s the one that’s
specific to the pysqlite DBAPI.
However, none of that matters, because you’re trying to use SAVEPOINT and
you definitely don’t just want to turn on pysqlite’s autocommit and do
nothing else.
Your use case here is specifically addressed here:
http://docs.sqlalchemy.org/en/rel_0_9/dialects/sqlite.html#pysqlite-serializable
You will need to implement the events given there in order to use SAVEPOINT
transactions, which does include the “isolation_level=None” but also
critically re-implements the fact that you need to emit BEGIN at transaction
start.
> You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sqlalchemy+...@googlegroups.com.