8000 Release v1.1.0rc1 (#1122) · PyMySQL/PyMySQL@2596bbb · GitHub
[go: up one dir, main page]

Skip to content

Commit 2596bbb

Browse files
authored
Release v1.1.0rc1 (#1122)
1 parent a584952 commit 2596bbb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Release date: TBD
66

77
* Fixed SSCursor raising OperationalError for query timeouts on wrong statement (#1032)
88
* Exposed `Cursor.warning_count` to check for warnings without additional query (#1056)
9+
* Make Cursor iterator (#995)
10+
* Support '_' in key name in my.cnf (#1114)
11+
* `Cursor.fetchall()` returns empty list instead of tuple (#1115). Note that `Cursor.fetchmany()` still return empty tuple after reading all rows for compatibility with Django.
12+
* Deprecate Error classes in Cursor class (#1117)
13+
* Add `Connection.set_character_set(charset, collation=None)` (#1119)
14+
* Deprecate `Connection.set_charset(charset)` (#1119)
15+
* New connection always send "SET NAMES charset [COLLATE collation]" query. (#1119)
16+
Since collation table is vary on MySQL server versions, collation in handshake is fragile.
917

1018

1119
## v1.0.3

pymysql/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@
4747
)
4848

4949
# PyMySQL version.
50-
# Used by setuptools.
51-
VERSION = (1, 1, 0, "dev", 1)
50+
# Used by setuptools and connection_attrs
51+
VERSION = (1, 1, 0, "rc", 1)
52+
VERSION_STRING = "1.1.0rc1"
5253

5354
### for mysqlclient compatibility
5455
### Django checks mysqlclient version.

pymysql/connections.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
EOFPacketWrapper,
2626
LoadLocalPacketWrapper,
2727
)
28-
from . import err, __version__
28+
from . import err, VERSION_STRING
2929

3030
try:
3131
import ssl
@@ -345,8 +345,8 @@ def _config(key, arg):
345345

346346
self._connect_attrs = {
347347
"_client_name": "pymysql",
348+
"_client_version": VERSION_STRING,
348349
"_pid": str(os.getpid()),
349-
"_client_version": __version__,
350350
}
351351

352352
if program_name:

0 commit comments

Comments
 (0)
0