mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Update HISTORY
This commit is contained in:
18
HISTORY
18
HISTORY
@ -1,3 +1,21 @@
|
|||||||
|
=====================
|
||||||
|
What's new in 1.3.6
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Fix escape_string() doesn't work.
|
||||||
|
|
||||||
|
Remove `Cursor.__del__` to fix uncollectable circular reference on Python 3.3.
|
||||||
|
|
||||||
|
Add context manager support to `Cursor`. It automatically closes cursor on `__exit__`.
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
with conn.cursor() as cur:
|
||||||
|
cur.execute("SELECT 1+1")
|
||||||
|
print(cur.fetchone())
|
||||||
|
# cur is now closed
|
||||||
|
|
||||||
|
|
||||||
=====================
|
=====================
|
||||||
What's new in 1.3.5
|
What's new in 1.3.5
|
||||||
=====================
|
=====================
|
||||||
|
Reference in New Issue
Block a user