Skip to content

Commit d942d37

Browse files
author
Geert Vanderkelen
committed
Prepare release 2.0.3
1 parent c522648 commit d942d37

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

CHANGES.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
88
Full release notes:
99
http://dev.mysql.com/doc/relnotes/connector-python/en/
1010

11+
v2.0.3
12+
======
13+
14+
- BUG19703022: Fix using passwords with integers only in option files
15+
- BUG19777815: Add support for warnings with MySQLCursor.callproc()
16+
- BUG19972427: Fix creating of redundant connections in Django
17+
- BUG19331658: Fix connection pooling with MySQL Fabric
18+
- BUG19930054: Lost connection to server error during query
19+
- BUG19803702: Fix reporting errors with non-ascii characters
20+
1121
v2.0.2
1222
======
1323

cpyint

lib/mysql/connector/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
as mysql.connector.version.
2727
"""
2828

29-
VERSION = (2, 0, 2, '', 0)
29+
VERSION = (2, 0, 3, '', 0)
3030

3131
if VERSION[3] and VERSION[4]:
3232
VERSION_TEXT = '{0}.{1}.{2}{3}{4}'.format(*VERSION)

tests/test_bugs.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,10 @@ def test_binary_charset(self):
30133013
class BugOra19549363(tests.MySQLConnectorTests):
30143014
"""BUG#19549363: Compression does not work with Change User
30153015
"""
3016+
3017+
def tearDown(self):
3018+
mysql.connector._CONNECTION_POOLS = {}
3019+
30163020
def test_compress(self):
30173021
config = tests.get_mysql_config()
30183022
config['compress'] = True
@@ -3097,7 +3101,12 @@ def test_warning_with_rows(self):
30973101
cur.callproc(self.sp2)
30983102

30993103
exp = [(1,)]
3100-
self.assertEqual(exp, cur.stored_results().next().fetchall())
3104+
try:
3105+
select_result = cur.stored_results().next()
3106+
except AttributeError:
3107+
# Python 3
3108+
select_result = next(cur.stored_results())
3109+
self.assertEqual(exp, select_result.fetchall())
31013110
exp = [(u'Warning', 1642, u'TEST WARNING')]
31023111
self.assertEqual(exp, cur.fetchwarnings())
31033112
cur.close()

tests/test_fabric.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,15 @@ def test_range_string(self):
535535
rows = cur.fetchall()
536536
self.assertEqual(rows, emp_exp_range_string[str_key])
537537

538-
self.cnx.set_property(tables=tables,
539-
key=b'not unicode str', mode=fabric.MODE_READONLY)
540-
self.assertRaises(ValueError, self.cnx.cursor)
538+
if not PY2:
539+
self.assertRaises(TypeError, self.cnx.set_property,
540+
tables=tables, key=b'not unicode str',
541+
mode=fabric.MODE_READONLY)
542+
else:
543+
self.cnx.set_property(tables=tables,
544+
key=b'not unicode str',
545+
mode=fabric.MODE_READONLY)
546+
self.assertRaises(ValueError, self.cnx.cursor)
541547

542548
self.cnx.set_property(tables=tables,
543549
key=12345, mode=fabric.MODE_READONLY)
@@ -618,3 +624,5 @@ def test_bug19331658(self):
618624
mysqlserver.host, mysqlserver.port, config['user'],
619625
config['database'])
620626
)
627+
628+
mysql.connector._CONNECTION_POOLS = {}

0 commit comments

Comments
 (0)