| 1 |
--- |
| 2 |
features: |
| 3 |
- | |
| 4 |
To guarantee the correct transition to SQLAlchemy 2.0, Neutron and |
| 5 |
neutron-lib set the SQL engine connection ``autocommit`` parameter to |
| 6 |
"False". Since SQLAlchemy 1.4, this parameter will default to "False"; |
| 7 |
in SQLAlchemy 2.0, this will be the only value. |
| 8 |
If session ``autocommit`` is "False", the session transaction will not |
| 9 |
end at the end of a reader/writer context. In this case, a session could |
| 10 |
have an active transaction even when it is not inside a reader/writer |
| 11 |
context. In order to mimic the previous behaviour, this method checks |
| 12 |
the pending new, deleted and dirty elements to be flushed. In case of |
| 13 |
not having any pending command, the session is considered as non active. |