forked from zzzeek/sqlalchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Emit v2.0 deprecation warning for "implicit autocommit""
- Loading branch information
Showing
19 changed files
with
525 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. change:: | ||
:tags: engine | ||
:tickets: 4846 | ||
|
||
"Implicit autocommit", which is the COMMIT that occurs when a DML or DDL | ||
statement is emitted on a connection, is deprecated and won't be part of | ||
SQLAlchemy 2.0. A 2.0-style warning is emitted when autocommit takes | ||
effect, so that the calling code may be adjusted to use an explicit | ||
transaction. | ||
|
||
As part of this change, DDL methods such as | ||
:meth:`_schema.MetaData.create_all` when used against an | ||
:class:`_engine.Engine` will run the operation in a BEGIN block if one is | ||
not started already. | ||
|
||
.. seealso:: | ||
|
||
:ref:`deprecation_20_mode` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. change:: | ||
:tags: bug, mysql | ||
|
||
The MySQL and MariaDB dialects now query from the information_schema.tables | ||
system view in order to determine if a particular table exists or not. | ||
Previously, the "DESCRIBE" command was used with an exception catch to | ||
detect non-existent, which would have the undesirable effect of emitting a | ||
ROLLBACK on the connection. There appeared to be legacy encoding issues | ||
which prevented the use of "SHOW TABLES", for this, but as MySQL support is | ||
now at 5.0.2 or above due to :ticket:`4189`, the information_schema tables | ||
are now available in all cases. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.