Merge lp:myconnpy/0.1 into lp:~geertjmvdk/myconnpy/main

Proposed by Geert JM Vanderkelen
Status: Rejected
Rejected by: Geert JM Vanderkelen
Proposed branch: lp:myconnpy/0.1
Merge into: lp:~geertjmvdk/myconnpy/main
Diff against target: 979 lines (+377/-54) (has conflicts)
48 files modified
ChangeLog (+201/-2)
README (+4/-0)
make_release.py (+4/-0)
python2/examples/client.py (+4/-0)
python2/mysql/connector/__init__.py (+1/-1)
python2/mysql/connector/_version.py (+4/-0)
python2/mysql/connector/connection.py (+6/-2)
python2/mysql/connector/constants.py (+1/-1)
python2/mysql/connector/conversion.py (+2/-2)
python2/mysql/connector/cursor.py (+2/-2)
python2/mysql/connector/dbapi.py (+1/-1)
python2/mysql/connector/errors.py (+4/-0)
python2/mysql/connector/mysql.py (+1/-1)
python2/mysql/connector/protocol.py (+1/-1)
python2/mysql/connector/utils.py (+1/-1)
python2/tests/__init__.py (+2/-2)
python2/tests/test_bugs.py (+43/-1)
python2/tests/test_constants.py (+2/-2)
python2/tests/test_conversion.py (+2/-2)
python2/tests/test_cursor.py (+2/-2)
python2/tests/test_examples.py (+2/-2)
python2/tests/test_mysql_datatypes.py (+2/-2)
python2/tests/test_pep249.py (+1/-1)
python2/tests/test_protocol.py (+1/-1)
python2/tests/test_utils.py (+1/-1)
python3/mysql/connector/__init__.py (+1/-1)
python3/mysql/connector/_version.py (+4/-0)
python3/mysql/connector/connection.py (+6/-2)
python3/mysql/connector/constants.py (+1/-1)
python3/mysql/connector/conversion.py (+1/-1)
python3/mysql/connector/cursor.py (+1/-1)
python3/mysql/connector/dbapi.py (+1/-1)
python3/mysql/connector/errors.py (+1/-1)
python3/mysql/connector/mysql.py (+1/-1)
python3/mysql/connector/protocol.py (+1/-1)
python3/mysql/connector/utils.py (+1/-1)
python3/tests/__init__.py (+1/-1)
python3/tests/test_bugs.py (+43/-1)
python3/tests/test_constants.py (+2/-2)
python3/tests/test_conversion.py (+2/-2)
python3/tests/test_cursor.py (+1/-1)
python3/tests/test_examples.py (+2/-2)
python3/tests/test_mysql_datatypes.py (+1/-1)
python3/tests/test_pep249.py (+1/-1)
python3/tests/test_protocol.py (+1/-1)
python3/tests/test_utils.py (+1/-1)
setup.py (+4/-0)
unittests.py (+4/-0)
Text conflict in ChangeLog
Text conflict in README
Text conflict in make_release.py
Text conflict in python2/examples/client.py
Text conflict in python2/mysql/connector/_version.py
Text conflict in python2/mysql/connector/connection.py
Text conflict in python2/mysql/connector/errors.py
Text conflict in python3/mysql/connector/_version.py
Text conflict in python3/mysql/connector/connection.py
Text conflict in setup.py
Text conflict in unittests.py
To merge this branch: bzr merge lp:myconnpy/0.1
Reviewer Review Type Date Requested Status
Geert JM Vanderkelen Pending
Review via email: mp+26303@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

243. By Geert JM Vanderkelen

Fix: examples.config.Config.dbinfo() not returning TCP port

o Bug lp:586003
o Config.dbinfo() now includes the TCP port
o Adding test case
o Updating ChangeLog

242. By Geert JM Vanderkelen

Preparing release 0.1.5-devel

241. By Geert JM Vanderkelen

Copyright change to Oracle

o Change copyright in all files
o Fixing a silly typo

240. By Geert JM Vanderkelen

Critical bug fix: impossible to select big results

o It was impossible to select big result sets.
o Fixed for both Python2 and Python3.
o Added test case for bug lp:586003 and lp:551533

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2010-05-23 11:39:37 +0000
+++ ChangeLog 2010-05-28 13:28:30 +0000
@@ -1,11 +1,210 @@
1MySQL Connector/Python - Release Notes / ChangeLog1MySQL Connector/Python - Release Notes / ChangeLog
2Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3Use is subject to license terms. (See COPYING)3Use is subject to license terms. (See COPYING)
44
5-----------------------------------------------------------------------5-----------------------------------------------------------------------
6<<<<<<< TREE
60.2.070.2.0
7-----------------------------------------------------------------------8-----------------------------------------------------------------------
8o Tidy-up and reorganizing the code so we have a clearer seperation between9o Tidy-up and reorganizing the code so we have a clearer seperation between
9 Python v2 and Python v3 code.10 Python v2 and Python v3 code.
10o Some overhead was removed when reading packets send by MySQL.11o Some overhead was removed when reading packets send by MySQL.
11 (Bug lp:584518)
12\ No newline at end of file12\ No newline at end of file
13 (Bug lp:584518)=======
140.1.5
15-----------------------------------------------------------------------
16Highlights:
17o It was impossible to retrieve big result sets. (bug lp:551533 and lp:586003)
18o Changing copyright from Sun to Oracle (also fixing silly typo).
19
20Details:
21241: Geert Vanderkelen 2010-05-27
22 Copyright change to Oracle
23240: Geert Vanderkelen 2010-05-27
24 Critical bug fix: impossible to select big results
25
26
27-----------------------------------------------------------------------
280.1.4
29-----------------------------------------------------------------------
30Highlights:
31o Reading from network was broken for bigger packages.
32o Reimplementing protocol.MySQLProtocol marking simpler and easier to
33 maintain.
34o It is now possible to send multiple statements to MySQL using
35 MySQLCursor.execute(). The results are accessible by calling the method
36 next_resultset().
37o MySQLCursor.callproc() will now store all result sets as a
38 MySQLCursorBuffered. They are accessible using the next_proc_resultset()
39 method. The result of the stored procedure is returned by callproc()
40 itself as defined by PEP249.
41o MySQL DATETIME conversion to Python datetime.datetime is now much faster.
42o Some overall performance improvements.
43o Copyright notice changes
44
45Details:
46238: Geert Vanderkelen 2010-05-20
47 Fix raising errors
48237: Geert Vanderkelen 2010-05-16
49 Additional fix for bug lp:573274
50236: Geert Vanderkelen 2010-05-16
51 Fixes the operation not being encoded to character set
52235: Geert Vanderkelen 2010-05-14
53 Adding default collations to constants.CharacterSet
54234: Geert Vanderkelen 2010-05-13
55 Improving DATETIME to datetime.datetime conversion
56233: Geert Vanderkelen 2010-05-05
57 Adding support for Multiple Statements using MySQLCusor.execute()
58232: Geert Vanderkelen 2010-05-05
59 Adding new debug output 'mode' to utils._dump_buffer()
60231: Geert Vanderkelen 2010-05-05
61 Adding constants.flag_is_set helper method
62230: Geert Vanderkelen 2010-04-29
63 Removing debug code from MySQLCursor
64229: Geert Vanderkelen 2010-04-24
65 Fixing unittests checking temporal data
66228: Geert Vanderkelen 2010-04-23
67 Updating the ChangeLog for 0.1.4
68227: Geert Vanderkelen 2010-04-23
69 Adding support for multiple results sets returned by stored procedures
70226: Geert Vanderkelen 2010-04-20
71 Fixing compat with 2.5 and get_desc() now works
72225: Geert Vanderkelen 2010-04-20
73 Adding changes done since rev 220
74224: Geert Vanderkelen 2010-03-19
75 Reverting to use regular expressions when parting MySQL version
76223: Geert Vanderkelen 2010-03-16
77 Optimizing read_lc_string and fixing intread a bit
78222: Geert Vanderkelen 2010-02-26
79 Removing MySQLBase.conn, moving connection to MySQLProtocol
80221: Geert Vanderkelen 2010-02-26
81 Reimplementing protocol.MySQLProtocol
82220: Geert Vanderkelen 2010-02-22
83 Correct test case for bug lp:524668 using Py3k
84219: Geert Vanderkelen 2010-02-22
85 Removing socket flags when using UNIX socket
86218: Geert Vanderkelen 2010-02-22
87 Fix parsing MySQL versions which have none-digits
88217: Geert Vanderkelen 2010-02-21
89 Fix test case for Bug499362 to support older versions of MySQL
90216: Geert Vanderkelen 2010-02-19
91 Refactoring MySQLBaseConnection.recv()
92215: Geert Vanderkelen 2010-02-18
93 Moving packet header parsing into MySQLBaseConnection
94214: Geert Vanderkelen 2010-02-18
95 Refactoring utils.read_lc_string_list() back to original
96213: Geert Vanderkelen 2010-02-18
97 Removing unnecessary constants import
98212: Geert Vanderkelen 2010-02-18
99 Refactoring methods utils.intread and utils.read_int
100211: Geert Vanderkelen 2010-02-18
101 Refactoring MySQLBase._open_connection
102210: Geert Vanderkelen 2010-02-18
103 Refactoring MySQLProtocol.set_handshake
104209: Geert Vanderkelen 2010-02-18
105 Refactoring MySQLBase.set_autocommit
106208: Geert Vanderkelen 2010-02-17
107 Optimizing the CharacterSet constant
108207: Geert Vanderkelen 2010-02-16
109 Adding passwd as connection parameter
110206: Geert Vanderkelen 2010-02-12
111 Adding support Cygwin setting socket flags to zero
112205: Geert Vanderkelen 2010-02-12
113 Fix authentication by fixing utils.int1read()
114204: Geert Vanderkelen 2010-02-12
115 Reverting rev200
116203: Geert Vanderkelen 2010-02-08
117 Fix possible problem with socket.error without errno
118202: Geert Vanderkelen 2010-01-28
119 {0.1.3-devel} Adding changelog for 0.1.3-devel
120
121-----------------------------------------------------------------------
1220.1.3-devel (2010-01-28)
123-----------------------------------------------------------------------
124Highlights:
125o Important memory leak fixed when closing cursors.
126o Warnings can now be raised as exceptions.
127o Fixing unicode usage and broken error message when MySQL chops them
128o Client flags can now be set correctly when connecting
129o Conversion fixes for BIT/YEARSET and Python to DATE/DATETIME
130o Adding MySQL Client Errors and raising better exceptions based on errno.
131
132Details:
133201: Geert Vanderkelen 2010-01-28 {0.1.3-devel} Using weak references
134200: Geert Vanderkelen 2010-01-28 Moving dict attributes of MySQLConverter to methods
135199: Geert Vanderkelen 2010-01-27 Fixing memory leak when opening cursors
136198: Geert Vanderkelen 2010-01-26 Exception raised in protocol module using errors.get_mysql_exception
137197: Geert Vanderkelen 2010-01-26 Fixing mysql.Error and simplying
138196: Geert Vanderkelen 2010-01-25 Adding MySQL server errors and better exceptions (part 1)
139195: Geert Vanderkelen 2010-01-25 Fixing rowcount in Cursor executemany() with no-result sets
140194: Geert Vanderkelen 2010-01-25 Using MySQL Client Error messages when connecting
141193: Geert Vanderkelen 2010-01-25 Implementing MySQL Client Errors
142192: Geert Vanderkelen 2010-01-23 Simplying the cursor.set_connection method raising correct Exception
143191: Geert Vanderkelen 2010-01-23 Changing get_flags_info to get_bit_info in a new class
144190: Geert Vanderkelen 2010-01-22 Implementing Raise-On-Warnings
145189: Geert Vanderkelen 2010-01-22 Fixed the conversion of binary fields
146188: Geert Vanderkelen 2010-01-22 Removing sys.path change
147187: Geert Vanderkelen 2010-01-22 Adding method to retrieve names given FieldFlag bitvalues
148186: Geert Vanderkelen 2010-01-22 Fixing _constants get_desc/get_info methods
149185: Geert Vanderkelen 2010-01-22 Adding missing check for BIT-field in to_python method
150184: Geert Vanderkelen 2010-01-22 Fixing buffered MySQL cursor & handling unread results
151183: Geert Vanderkelen 2010-01-20 Change in convesion of SET data type to Python set
152182: Geert Vanderkelen 2010-01-20 Adding tests for MySQL data types (numeric and temporal)
153181: Geert Vanderkelen 2010-01-19 Fixing Python to MySQL DATE/DATETIME conversions and throwing exceptions
154180: Geert Vanderkelen 2010-01-17 Removing fields and nrflds attributes from MySQLCursor
155179: Geert Vanderkelen 2010-01-15 Fixing MySQL BIT column conversion to Python
156178: Geert Vanderkelen 2010-01-14 Adding conversion for MySQL's BIT data type
157177: Geert Vanderkelen 2010-01-14 Updating inserts.py example so it commits
158176: Geert Vanderkelen 2010-01-14 Adding conversion for MySQL's YEAR data type
159175: Geert Vanderkelen 2009-12-31 Fix in unittests for comparing results from MySQL and what is expected
160174: Geert Vanderkelen 2009-12-31 Fix for setting client flags when connecting
161173: Geert Vanderkelen 2009-12-23 [merge] Merging from 0.1.2-devel release
162172: Geert Vanderkelen 2009-12-23 Fix for broken unicode characters when MySQL trimed the errmsg
163171: Geert Vanderkelen 2009-12-23 Fixing unicode usage for both Python 2.4+ and 3.1
164
165-----------------------------------------------------------------------
1660.1.2-devel (2009-12-23)
167-----------------------------------------------------------------------
168o Fixing unicode usage for both Python 2.4+ and 3.1
169 * Setting 'use_unicode' at connection time is now working.
170 * conversion.py: removing regular expression for quoting backslashes.
171 * Adding test case for bug lp:499410
172
173 Py3k specific:
174 * Strings from MySQL are decoded to the given character when use_unicode
175 is false
176 * The statement is encoded just before sending it to the MySQL server.
177 Internally, all is done in unicode.
178 * In conversion.py: removing _unicode_to_mysql, adding _bytes_to_mysql
179 * MySQLCursor.__unicode__ is obsolete and replaced with __str__
180 * Removing tests for which the methods were deleted.
181
182o Fix setting character set at connection
183
184 * mysql.connector.Connect(charset='latin1') now works as expected
185 * Default character set is (still) UTF-8.
186 * SET NAMES is only used when changing character set after connecting.
187 Use MySQL.set_charset(charsetname) to change.
188 * Test case added for bug report; fixing test case in test_protocol.py
189 to reflect the new default character set 'utf-8'.
190
191-----------------------------------------------------------------------
1920.1.1-devel (2009-12-21)
193-----------------------------------------------------------------------
194o Added Python v3.1 support
195 * The subdirectory/module py3k/ contains Connector/Python compatible
196 with Python v3.1.1.
197 * setup.py will install the correct Connector/Python distribution
198 depending on the Python version.
199 * Test cases which were running against Python v2.4+ are also working
200 under Python v3.1
201 * Examples found in py3k/examples should work with Python v3.1
202 * The code will not check whether the Python version is supported.
203
204o Misc.
205 * Using divmod() in MySQLConverter._timedelta_to_mysql()
206 * Avoiding imports and the use of isinstance() by putting code in
207 exceptions.
208 * Stop using types module.
209
210
211>>>>>>> MERGE-SOURCE
13212
=== modified file 'README'
--- README 2010-05-21 13:52:17 +0000
+++ README 2010-05-28 13:28:30 +0000
@@ -1,7 +1,11 @@
11
2MySQL Connector/Python MySQL driver written in Python2MySQL Connector/Python MySQL driver written in Python
3==============================================================================3==============================================================================
4<<<<<<< TREE
4Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.5Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6=======
7Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
8>>>>>>> MERGE-SOURCE
5Use is subject to license terms. (See COPYING)9Use is subject to license terms. (See COPYING)
610
7MySQL Connector/Python is implementing the MySQL Client/Server protocol11MySQL Connector/Python is implementing the MySQL Client/Server protocol
812
=== modified file 'make_release.py'
--- make_release.py 2010-05-21 13:52:17 +0000
+++ make_release.py 2010-05-28 13:28:30 +0000
@@ -1,7 +1,11 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3# MySQL Connector/Python - MySQL driver written in Python.3# MySQL Connector/Python - MySQL driver written in Python.
4<<<<<<< TREE
4# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.5# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6=======
7# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
8>>>>>>> MERGE-SOURCE
5# Use is subject to license terms. (See COPYING)9# Use is subject to license terms. (See COPYING)
610
7# This program is free software; you can redistribute it and/or modify11# This program is free software; you can redistribute it and/or modify
812
=== modified file 'python2/examples/client.py' (properties changed: +x to -x)
--- python2/examples/client.py 2010-05-21 13:52:17 +0000
+++ python2/examples/client.py 2010-05-28 13:28:30 +0000
@@ -1,7 +1,11 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3# MySQL Connector/Python - MySQL driver written in Python.3# MySQL Connector/Python - MySQL driver written in Python.
4<<<<<<< TREE
4# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.5# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6=======
7# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
8>>>>>>> MERGE-SOURCE
5# Use is subject to license terms. (See COPYING)9# Use is subject to license terms. (See COPYING)
610
7# This program is free software; you can redistribute it and/or modify11# This program is free software; you can redistribute it and/or modify
812
=== modified file 'python2/mysql/connector/__init__.py'
--- python2/mysql/connector/__init__.py 2009-12-31 10:34:36 +0000
+++ python2/mysql/connector/__init__.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/mysql/connector/_version.py'
--- python2/mysql/connector/_version.py 2010-05-21 09:32:25 +0000
+++ python2/mysql/connector/_version.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,9 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2<<<<<<< TREE
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.3# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
4=======
5# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6>>>>>>> MERGE-SOURCE
3# Use is subject to license terms. (See COPYING)7# Use is subject to license terms. (See COPYING)
48
5# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
610
=== modified file 'python2/mysql/connector/connection.py'
--- python2/mysql/connector/connection.py 2010-05-23 12:16:35 +0000
+++ python2/mysql/connector/connection.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,9 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2<<<<<<< TREE
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.3# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
4=======
5# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6>>>>>>> MERGE-SOURCE
3# Use is subject to license terms. (See COPYING)7# Use is subject to license terms. (See COPYING)
48
5# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
@@ -88,14 +92,14 @@
88 if pktnr == -1 and totalsize > 4:92 if pktnr == -1 and totalsize > 4:
89 pktsize = utils.intread(buf[0:3])93 pktsize = utils.intread(buf[0:3])
90 pktnr = utils.intread(buf[3])94 pktnr = utils.intread(buf[3])
91 if pktnr > -1 and totalsize >= pktsize:95 if pktnr > -1 and totalsize >= pktsize+4:
92 size = pktsize+496 size = pktsize+4
93 self.buffer.append(buf[0:size])97 self.buffer.append(buf[0:size])
94 buf = buf[size:]98 buf = buf[size:]
95 pktnr = -199 pktnr = -1
96 if len(buf) == 0:100 if len(buf) == 0:
97 break101 break
98 elif len(buf) < pktsize:102 elif len(buf) < pktsize+4:
99 buf += self.sock.recv(self.recvsize, self.socket_flags)103 buf += self.sock.recv(self.recvsize, self.socket_flags)
100 except socket.error, e:104 except socket.error, e:
101 raise errors.InterfaceError(errno=2055,105 raise errors.InterfaceError(errno=2055,
102106
=== modified file 'python2/mysql/connector/constants.py'
--- python2/mysql/connector/constants.py 2010-05-14 11:41:54 +0000
+++ python2/mysql/connector/constants.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/mysql/connector/conversion.py'
--- python2/mysql/connector/conversion.py 2010-05-13 07:01:07 +0000
+++ python2/mysql/connector/conversion.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -413,4 +413,4 @@
413 return v413 return v
414 414
415 return self._STRING_to_python(v, dsc)415 return self._STRING_to_python(v, dsc)
416
417\ No newline at end of file416\ No newline at end of file
417
418418
=== modified file 'python2/mysql/connector/cursor.py'
--- python2/mysql/connector/cursor.py 2010-05-16 11:38:16 +0000
+++ python2/mysql/connector/cursor.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -605,4 +605,4 @@
605 return res605 return res
606 606
607607
608
609\ No newline at end of file608\ No newline at end of file
609
610610
=== modified file 'python2/mysql/connector/dbapi.py'
--- python2/mysql/connector/dbapi.py 2009-11-26 16:14:48 +0000
+++ python2/mysql/connector/dbapi.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/mysql/connector/errors.py'
--- python2/mysql/connector/errors.py 2010-05-23 12:16:35 +0000
+++ python2/mysql/connector/errors.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,9 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2<<<<<<< TREE
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.3# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
4=======
5# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6>>>>>>> MERGE-SOURCE
3# Use is subject to license terms. (See COPYING)7# Use is subject to license terms. (See COPYING)
48
5# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
610
=== modified file 'python2/mysql/connector/mysql.py'
--- python2/mysql/connector/mysql.py 2010-05-20 09:43:47 +0000
+++ python2/mysql/connector/mysql.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/mysql/connector/protocol.py'
--- python2/mysql/connector/protocol.py 2010-05-23 11:15:53 +0000
+++ python2/mysql/connector/protocol.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/mysql/connector/utils.py'
--- python2/mysql/connector/utils.py 2010-05-05 13:27:52 +0000
+++ python2/mysql/connector/utils.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/tests/__init__.py'
--- python2/tests/__init__.py 2010-01-20 13:01:19 +0000
+++ python2/tests/__init__.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -126,4 +126,4 @@
126126
127def printmsg(msg=None):127def printmsg(msg=None):
128 if msg is not None:128 if msg is not None:
129 print(msg)
130\ No newline at end of file129\ No newline at end of file
130 print(msg)
131131
=== modified file 'python2/tests/test_bugs.py'
--- python2/tests/test_bugs.py 2010-05-23 10:34:51 +0000
+++ python2/tests/test_bugs.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -505,3 +505,45 @@
505 self.assertEqual(exp,self.c.fetchall())505 self.assertEqual(exp,self.c.fetchall())
506 self.assertEqual(None,self.c.next_resultset())506 self.assertEqual(None,self.c.next_resultset())
507507
508class Bug551533and586003(tests.MySQLConnectorTests):
509 """lp: 551533, 586003: impossible to retrive big result sets"""
510
511 def setUp(self):
512 config = self.getMySQLConfig()
513 config['connection_timeout'] = 2
514 self.db = mysql.MySQL(**config)
515 self.c = self.db.cursor()
516
517 self.tbl = 'Bug551533'
518 self.c.execute("DROP TABLE IF EXISTS %s" % (self.tbl))
519 self.c.execute("""CREATE TABLE %s (
520 id INT AUTO_INCREMENT KEY,
521 c1 VARCHAR(100) DEFAULT 'abcabcabcabcabcabcabcabcabcabc'
522 )""" % (self.tbl))
523
524 def tearDown(self):
525 try:
526 self.c = db.cursor("DROP TABLE IF EXISTS %s" % (self.tbl))
527 self.c.close()
528 except:
529 pass
530 self.db.close()
531
532 def test_select(self):
533 """lp: 551533, 586003: impossible to retrive big result sets"""
534
535 insert = "INSERT INTO %s VALUES ()" % (self.tbl)
536 exp = 20000
537 i = exp
538 while i > 0:
539 self.c.execute(insert)
540 i -= 1
541
542 self.c.execute('SELECT * FROM %s LIMIT 20000' % (self.tbl))
543 try:
544 rows = self.c.fetchall()
545 except:
546 self.fail("Failed retrieving big result set")
547 else:
548 self.assertEqual(exp, self.c.rowcount)
549
508550
=== modified file 'python2/tests/test_constants.py'
--- python2/tests/test_constants.py 2010-05-14 11:41:54 +0000
+++ python2/tests/test_constants.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -284,4 +284,4 @@
284 284
285 self.assertEqual(exp, constants.CharacterSet.get_supported())285 self.assertEqual(exp, constants.CharacterSet.get_supported())
286286
287
288\ No newline at end of file287\ No newline at end of file
288
289289
=== modified file 'python2/tests/test_conversion.py'
--- python2/tests/test_conversion.py 2010-01-22 14:47:52 +0000
+++ python2/tests/test_conversion.py 2010-05-28 13:28:30 +0000
@@ -1,6 +1,6 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2# MySQL Connector/Python - MySQL driver written in Python.2# MySQL Connector/Python - MySQL driver written in Python.
3# Copyright 2009 Sun Microsystems, Inc. All rights reserved3# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
4# Use is subject to license terms. (See COPYING)4# Use is subject to license terms. (See COPYING)
55
6# This program is free software; you can redistribute it and/or modify6# This program is free software; you can redistribute it and/or modify
@@ -429,4 +429,4 @@
429 res = self.cnv._BLOB_to_python(data,desc)429 res = self.cnv._BLOB_to_python(data,desc)
430 430
431 self.assertEqual(data,res)431 self.assertEqual(data,res)
432
433\ No newline at end of file432\ No newline at end of file
433
434434
=== modified file 'python2/tests/test_cursor.py'
--- python2/tests/test_cursor.py 2010-05-05 14:08:47 +0000
+++ python2/tests/test_cursor.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -821,4 +821,4 @@
821 pass821 pass
822 else:822 else:
823 self.fail("Did not get exception while raising warnings.")823 self.fail("Did not get exception while raising warnings.")
824
825\ No newline at end of file824\ No newline at end of file
825
826826
=== modified file 'python2/tests/test_examples.py'
--- python2/tests/test_examples.py 2010-05-05 14:08:47 +0000
+++ python2/tests/test_examples.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -99,4 +99,4 @@
99 import examples.multi_resultsets as exp99 import examples.multi_resultsets as exp
100 except StandardError, e:100 except StandardError, e:
101 self.fail(e)101 self.fail(e)
102 self._exec_main(exp)
103\ No newline at end of file102\ No newline at end of file
103 self._exec_main(exp)
104104
=== modified file 'python2/tests/test_mysql_datatypes.py'
--- python2/tests/test_mysql_datatypes.py 2010-04-24 16:53:06 +0000
+++ python2/tests/test_mysql_datatypes.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -328,4 +328,4 @@
328 compare("%s (data[%d])" % (col,j),data[j][i],rows[j][i])328 compare("%s (data[%d])" % (col,j),data[j][i],rows[j][i])
329 329
330 c.close()330 c.close()
331
332\ No newline at end of file331\ No newline at end of file
332
333333
=== modified file 'python2/tests/test_pep249.py'
--- python2/tests/test_pep249.py 2010-04-24 16:53:06 +0000
+++ python2/tests/test_pep249.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/tests/test_protocol.py'
--- python2/tests/test_protocol.py 2010-05-23 11:15:53 +0000
+++ python2/tests/test_protocol.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python2/tests/test_utils.py'
--- python2/tests/test_utils.py 2010-02-18 16:33:28 +0000
+++ python2/tests/test_utils.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/__init__.py'
--- python3/mysql/connector/__init__.py 2009-12-31 10:34:36 +0000
+++ python3/mysql/connector/__init__.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/_version.py'
--- python3/mysql/connector/_version.py 2010-05-21 09:32:25 +0000
+++ python3/mysql/connector/_version.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,9 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2<<<<<<< TREE
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.3# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
4=======
5# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6>>>>>>> MERGE-SOURCE
3# Use is subject to license terms. (See COPYING)7# Use is subject to license terms. (See COPYING)
48
5# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
610
=== modified file 'python3/mysql/connector/connection.py'
--- python3/mysql/connector/connection.py 2010-05-23 12:16:35 +0000
+++ python3/mysql/connector/connection.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,9 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2<<<<<<< TREE
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.3# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
4=======
5# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6>>>>>>> MERGE-SOURCE
3# Use is subject to license terms. (See COPYING)7# Use is subject to license terms. (See COPYING)
48
5# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
@@ -87,14 +91,14 @@
87 if pktnr == -1 and totalsize > 4:91 if pktnr == -1 and totalsize > 4:
88 pktsize = utils.intread(buf[0:3])92 pktsize = utils.intread(buf[0:3])
89 pktnr = utils.intread(buf[3])93 pktnr = utils.intread(buf[3])
90 if pktnr > -1 and totalsize >= pktsize:94 if pktnr > -1 and totalsize >= pktsize+4:
91 size = pktsize+495 size = pktsize+4
92 self.buffer.append(buf[0:size])96 self.buffer.append(buf[0:size])
93 buf = buf[size:]97 buf = buf[size:]
94 pktnr = -198 pktnr = -1
95 if len(buf) == 0:99 if len(buf) == 0:
96 break100 break
97 elif len(buf) < pktsize:101 elif len(buf) < pktsize+4:
98 buf += self.sock.recv(self.recvsize, self.socket_flags)102 buf += self.sock.recv(self.recvsize, self.socket_flags)
99 except socket.error as e:103 except socket.error as e:
100 raise errors.InterfaceError(errno=2055,104 raise errors.InterfaceError(errno=2055,
101105
=== modified file 'python3/mysql/connector/constants.py'
--- python3/mysql/connector/constants.py 2010-05-14 11:41:54 +0000
+++ python3/mysql/connector/constants.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/conversion.py'
--- python3/mysql/connector/conversion.py 2010-05-13 07:01:07 +0000
+++ python3/mysql/connector/conversion.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/cursor.py'
--- python3/mysql/connector/cursor.py 2010-05-16 11:27:39 +0000
+++ python3/mysql/connector/cursor.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/dbapi.py'
--- python3/mysql/connector/dbapi.py 2009-12-21 15:53:20 +0000
+++ python3/mysql/connector/dbapi.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/errors.py'
--- python3/mysql/connector/errors.py 2010-05-23 12:16:35 +0000
+++ python3/mysql/connector/errors.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/mysql.py'
--- python3/mysql/connector/mysql.py 2010-05-20 09:43:47 +0000
+++ python3/mysql/connector/mysql.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/protocol.py'
--- python3/mysql/connector/protocol.py 2010-05-23 11:15:53 +0000
+++ python3/mysql/connector/protocol.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/mysql/connector/utils.py'
--- python3/mysql/connector/utils.py 2010-05-05 13:27:52 +0000
+++ python3/mysql/connector/utils.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/tests/__init__.py'
--- python3/tests/__init__.py 2010-01-20 13:01:19 +0000
+++ python3/tests/__init__.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/tests/test_bugs.py'
--- python3/tests/test_bugs.py 2010-05-23 10:34:51 +0000
+++ python3/tests/test_bugs.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -520,3 +520,45 @@
520 exp = [(1, 10), (2, 20)]520 exp = [(1, 10), (2, 20)]
521 self.assertEqual(exp,self.c.fetchall())521 self.assertEqual(exp,self.c.fetchall())
522 self.assertEqual(None,self.c.next_resultset())522 self.assertEqual(None,self.c.next_resultset())
523
524class Bug551533and586003(tests.MySQLConnectorTests):
525 """lp: 551533, 586003: impossible to retrive big result sets"""
526
527 def setUp(self):
528 config = self.getMySQLConfig()
529 config['connection_timeout'] = 2
530 self.db = mysql.MySQL(**config)
531 self.c = self.db.cursor()
532
533 self.tbl = 'Bug551533'
534 self.c.execute("DROP TABLE IF EXISTS %s" % (self.tbl))
535 self.c.execute("""CREATE TABLE %s (
536 id INT AUTO_INCREMENT KEY,
537 c1 VARCHAR(100) DEFAULT 'abcabcabcabcabcabcabcabcabcabc'
538 )""" % (self.tbl))
539
540 def tearDown(self):
541 try:
542 self.c = db.cursor("DROP TABLE IF EXISTS %s" % (self.tbl))
543 self.c.close()
544 except:
545 pass
546 self.db.close()
547
548 def test_select(self):
549 """lp: 551533, 586003: impossible to retrive big result sets"""
550
551 insert = "INSERT INTO %s VALUES ()" % (self.tbl)
552 exp = 20000
553 i = exp
554 while i > 0:
555 self.c.execute(insert)
556 i -= 1
557
558 self.c.execute('SELECT * FROM %s LIMIT 20000' % (self.tbl))
559 try:
560 rows = self.c.fetchall()
561 except:
562 self.fail("Failed retrieving big result set")
563 else:
564 self.assertEqual(exp, self.c.rowcount)
523565
=== modified file 'python3/tests/test_constants.py'
--- python3/tests/test_constants.py 2010-05-14 11:41:54 +0000
+++ python3/tests/test_constants.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -283,4 +283,4 @@
283 283
284 self.assertEqual(exp, constants.CharacterSet.get_supported())284 self.assertEqual(exp, constants.CharacterSet.get_supported())
285285
286
287\ No newline at end of file286\ No newline at end of file
287
288288
=== modified file 'python3/tests/test_conversion.py'
--- python3/tests/test_conversion.py 2010-01-22 14:47:52 +0000
+++ python3/tests/test_conversion.py 2010-05-28 13:28:30 +0000
@@ -1,6 +1,6 @@
1# -*- coding: utf-8 -*-1# -*- coding: utf-8 -*-
2# MySQL Connector/Python - MySQL driver written in Python.2# MySQL Connector/Python - MySQL driver written in Python.
3# Copyright 2009 Sun Microsystems, Inc. All rights reserved3# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
4# Use is subject to license terms. (See COPYING)4# Use is subject to license terms. (See COPYING)
55
6# This program is free software; you can redistribute it and/or modify6# This program is free software; you can redistribute it and/or modify
@@ -426,4 +426,4 @@
426 desc = ('foo', constants.FieldType.BLOB, 2, 3, 4, 5, 6, constants.FieldFlag.BINARY)426 desc = ('foo', constants.FieldType.BLOB, 2, 3, 4, 5, 6, constants.FieldFlag.BINARY)
427 res = self.cnv._BLOB_to_python(data,desc)427 res = self.cnv._BLOB_to_python(data,desc)
428428
429 self.assertEqual(data,res)
430\ No newline at end of file429\ No newline at end of file
430 self.assertEqual(data,res)
431431
=== modified file 'python3/tests/test_cursor.py'
--- python3/tests/test_cursor.py 2010-05-05 14:08:47 +0000
+++ python3/tests/test_cursor.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/tests/test_examples.py'
--- python3/tests/test_examples.py 2010-05-21 13:52:17 +0000
+++ python3/tests/test_examples.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
@@ -99,4 +99,4 @@
99 except StandardError as e:99 except StandardError as e:
100 self.fail(e)100 self.fail(e)
101 self._exec_main(exp)101 self._exec_main(exp)
102
103\ No newline at end of file102\ No newline at end of file
103
104104
=== modified file 'python3/tests/test_mysql_datatypes.py'
--- python3/tests/test_mysql_datatypes.py 2010-04-24 16:53:06 +0000
+++ python3/tests/test_mysql_datatypes.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/tests/test_pep249.py'
--- python3/tests/test_pep249.py 2010-04-24 16:53:06 +0000
+++ python3/tests/test_pep249.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/tests/test_protocol.py'
--- python3/tests/test_protocol.py 2010-05-23 11:15:53 +0000
+++ python3/tests/test_protocol.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'python3/tests/test_utils.py'
--- python3/tests/test_utils.py 2010-02-18 16:33:28 +0000
+++ python3/tests/test_utils.py 2010-05-28 13:28:30 +0000
@@ -1,5 +1,5 @@
1# MySQL Connector/Python - MySQL driver written in Python.1# MySQL Connector/Python - MySQL driver written in Python.
2# Copyright 2009 Sun Microsystems, Inc. All rights reserved2# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
3# Use is subject to license terms. (See COPYING)3# Use is subject to license terms. (See COPYING)
44
5# This program is free software; you can redistribute it and/or modify5# This program is free software; you can redistribute it and/or modify
66
=== modified file 'setup.py' (properties changed: +x to -x)
--- setup.py 2010-05-21 13:52:17 +0000
+++ setup.py 2010-05-28 13:28:30 +0000
@@ -1,7 +1,11 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3# MySQL Connector/Python - MySQL driver written in Python.3# MySQL Connector/Python - MySQL driver written in Python.
4<<<<<<< TREE
4# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.5# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6=======
7# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
8>>>>>>> MERGE-SOURCE
5# Use is subject to license terms. (See COPYING)9# Use is subject to license terms. (See COPYING)
610
7# This program is free software; you can redistribute it and/or modify11# This program is free software; you can redistribute it and/or modify
812
=== modified file 'unittests.py' (properties changed: +x to -x)
--- unittests.py 2010-05-21 13:52:17 +0000
+++ unittests.py 2010-05-28 13:28:30 +0000
@@ -1,7 +1,11 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3# MySQL Connector/Python - MySQL driver written in Python.3# MySQL Connector/Python - MySQL driver written in Python.
4<<<<<<< TREE
4# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.5# Copryright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
6=======
7# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
8>>>>>>> MERGE-SOURCE
5# Use is subject to license terms. (See COPYING)9# Use is subject to license terms. (See COPYING)
610
7# This program is free software; you can redistribute it and/or modify11# This program is free software; you can redistribute it and/or modify

Subscribers

People subscribed via source and target branches