Merge lp:myconnpy/0.1 into lp:~geertjmvdk/myconnpy/main
- 0.1
- Merge into 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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Geert JM Vanderkelen | Pending | ||
Review via email: mp+26303@code.launchpad.net |
Commit message
Description of the change
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
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2010-05-23 11:39:37 +0000 | |||
3 | +++ ChangeLog 2010-05-28 13:28:30 +0000 | |||
4 | @@ -1,11 +1,210 @@ | |||
5 | 1 | MySQL Connector/Python - Release Notes / ChangeLog | 1 | MySQL Connector/Python - Release Notes / ChangeLog |
7 | 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. |
8 | 3 | Use is subject to license terms. (See COPYING) | 3 | Use is subject to license terms. (See COPYING) |
9 | 4 | 4 | ||
10 | 5 | ----------------------------------------------------------------------- | 5 | ----------------------------------------------------------------------- |
11 | 6 | <<<<<<< TREE | ||
12 | 6 | 0.2.0 | 7 | 0.2.0 |
13 | 7 | ----------------------------------------------------------------------- | 8 | ----------------------------------------------------------------------- |
14 | 8 | o Tidy-up and reorganizing the code so we have a clearer seperation between | 9 | o Tidy-up and reorganizing the code so we have a clearer seperation between |
15 | 9 | Python v2 and Python v3 code. | 10 | Python v2 and Python v3 code. |
16 | 10 | o Some overhead was removed when reading packets send by MySQL. | 11 | o Some overhead was removed when reading packets send by MySQL. |
17 | 11 | (Bug lp:584518) | ||
18 | 12 | \ No newline at end of file | 12 | \ No newline at end of file |
19 | 13 | (Bug lp:584518)======= | ||
20 | 14 | 0.1.5 | ||
21 | 15 | ----------------------------------------------------------------------- | ||
22 | 16 | Highlights: | ||
23 | 17 | o It was impossible to retrieve big result sets. (bug lp:551533 and lp:586003) | ||
24 | 18 | o Changing copyright from Sun to Oracle (also fixing silly typo). | ||
25 | 19 | |||
26 | 20 | Details: | ||
27 | 21 | 241: Geert Vanderkelen 2010-05-27 | ||
28 | 22 | Copyright change to Oracle | ||
29 | 23 | 240: Geert Vanderkelen 2010-05-27 | ||
30 | 24 | Critical bug fix: impossible to select big results | ||
31 | 25 | |||
32 | 26 | |||
33 | 27 | ----------------------------------------------------------------------- | ||
34 | 28 | 0.1.4 | ||
35 | 29 | ----------------------------------------------------------------------- | ||
36 | 30 | Highlights: | ||
37 | 31 | o Reading from network was broken for bigger packages. | ||
38 | 32 | o Reimplementing protocol.MySQLProtocol marking simpler and easier to | ||
39 | 33 | maintain. | ||
40 | 34 | o It is now possible to send multiple statements to MySQL using | ||
41 | 35 | MySQLCursor.execute(). The results are accessible by calling the method | ||
42 | 36 | next_resultset(). | ||
43 | 37 | o MySQLCursor.callproc() will now store all result sets as a | ||
44 | 38 | MySQLCursorBuffered. They are accessible using the next_proc_resultset() | ||
45 | 39 | method. The result of the stored procedure is returned by callproc() | ||
46 | 40 | itself as defined by PEP249. | ||
47 | 41 | o MySQL DATETIME conversion to Python datetime.datetime is now much faster. | ||
48 | 42 | o Some overall performance improvements. | ||
49 | 43 | o Copyright notice changes | ||
50 | 44 | |||
51 | 45 | Details: | ||
52 | 46 | 238: Geert Vanderkelen 2010-05-20 | ||
53 | 47 | Fix raising errors | ||
54 | 48 | 237: Geert Vanderkelen 2010-05-16 | ||
55 | 49 | Additional fix for bug lp:573274 | ||
56 | 50 | 236: Geert Vanderkelen 2010-05-16 | ||
57 | 51 | Fixes the operation not being encoded to character set | ||
58 | 52 | 235: Geert Vanderkelen 2010-05-14 | ||
59 | 53 | Adding default collations to constants.CharacterSet | ||
60 | 54 | 234: Geert Vanderkelen 2010-05-13 | ||
61 | 55 | Improving DATETIME to datetime.datetime conversion | ||
62 | 56 | 233: Geert Vanderkelen 2010-05-05 | ||
63 | 57 | Adding support for Multiple Statements using MySQLCusor.execute() | ||
64 | 58 | 232: Geert Vanderkelen 2010-05-05 | ||
65 | 59 | Adding new debug output 'mode' to utils._dump_buffer() | ||
66 | 60 | 231: Geert Vanderkelen 2010-05-05 | ||
67 | 61 | Adding constants.flag_is_set helper method | ||
68 | 62 | 230: Geert Vanderkelen 2010-04-29 | ||
69 | 63 | Removing debug code from MySQLCursor | ||
70 | 64 | 229: Geert Vanderkelen 2010-04-24 | ||
71 | 65 | Fixing unittests checking temporal data | ||
72 | 66 | 228: Geert Vanderkelen 2010-04-23 | ||
73 | 67 | Updating the ChangeLog for 0.1.4 | ||
74 | 68 | 227: Geert Vanderkelen 2010-04-23 | ||
75 | 69 | Adding support for multiple results sets returned by stored procedures | ||
76 | 70 | 226: Geert Vanderkelen 2010-04-20 | ||
77 | 71 | Fixing compat with 2.5 and get_desc() now works | ||
78 | 72 | 225: Geert Vanderkelen 2010-04-20 | ||
79 | 73 | Adding changes done since rev 220 | ||
80 | 74 | 224: Geert Vanderkelen 2010-03-19 | ||
81 | 75 | Reverting to use regular expressions when parting MySQL version | ||
82 | 76 | 223: Geert Vanderkelen 2010-03-16 | ||
83 | 77 | Optimizing read_lc_string and fixing intread a bit | ||
84 | 78 | 222: Geert Vanderkelen 2010-02-26 | ||
85 | 79 | Removing MySQLBase.conn, moving connection to MySQLProtocol | ||
86 | 80 | 221: Geert Vanderkelen 2010-02-26 | ||
87 | 81 | Reimplementing protocol.MySQLProtocol | ||
88 | 82 | 220: Geert Vanderkelen 2010-02-22 | ||
89 | 83 | Correct test case for bug lp:524668 using Py3k | ||
90 | 84 | 219: Geert Vanderkelen 2010-02-22 | ||
91 | 85 | Removing socket flags when using UNIX socket | ||
92 | 86 | 218: Geert Vanderkelen 2010-02-22 | ||
93 | 87 | Fix parsing MySQL versions which have none-digits | ||
94 | 88 | 217: Geert Vanderkelen 2010-02-21 | ||
95 | 89 | Fix test case for Bug499362 to support older versions of MySQL | ||
96 | 90 | 216: Geert Vanderkelen 2010-02-19 | ||
97 | 91 | Refactoring MySQLBaseConnection.recv() | ||
98 | 92 | 215: Geert Vanderkelen 2010-02-18 | ||
99 | 93 | Moving packet header parsing into MySQLBaseConnection | ||
100 | 94 | 214: Geert Vanderkelen 2010-02-18 | ||
101 | 95 | Refactoring utils.read_lc_string_list() back to original | ||
102 | 96 | 213: Geert Vanderkelen 2010-02-18 | ||
103 | 97 | Removing unnecessary constants import | ||
104 | 98 | 212: Geert Vanderkelen 2010-02-18 | ||
105 | 99 | Refactoring methods utils.intread and utils.read_int | ||
106 | 100 | 211: Geert Vanderkelen 2010-02-18 | ||
107 | 101 | Refactoring MySQLBase._open_connection | ||
108 | 102 | 210: Geert Vanderkelen 2010-02-18 | ||
109 | 103 | Refactoring MySQLProtocol.set_handshake | ||
110 | 104 | 209: Geert Vanderkelen 2010-02-18 | ||
111 | 105 | Refactoring MySQLBase.set_autocommit | ||
112 | 106 | 208: Geert Vanderkelen 2010-02-17 | ||
113 | 107 | Optimizing the CharacterSet constant | ||
114 | 108 | 207: Geert Vanderkelen 2010-02-16 | ||
115 | 109 | Adding passwd as connection parameter | ||
116 | 110 | 206: Geert Vanderkelen 2010-02-12 | ||
117 | 111 | Adding support Cygwin setting socket flags to zero | ||
118 | 112 | 205: Geert Vanderkelen 2010-02-12 | ||
119 | 113 | Fix authentication by fixing utils.int1read() | ||
120 | 114 | 204: Geert Vanderkelen 2010-02-12 | ||
121 | 115 | Reverting rev200 | ||
122 | 116 | 203: Geert Vanderkelen 2010-02-08 | ||
123 | 117 | Fix possible problem with socket.error without errno | ||
124 | 118 | 202: Geert Vanderkelen 2010-01-28 | ||
125 | 119 | {0.1.3-devel} Adding changelog for 0.1.3-devel | ||
126 | 120 | |||
127 | 121 | ----------------------------------------------------------------------- | ||
128 | 122 | 0.1.3-devel (2010-01-28) | ||
129 | 123 | ----------------------------------------------------------------------- | ||
130 | 124 | Highlights: | ||
131 | 125 | o Important memory leak fixed when closing cursors. | ||
132 | 126 | o Warnings can now be raised as exceptions. | ||
133 | 127 | o Fixing unicode usage and broken error message when MySQL chops them | ||
134 | 128 | o Client flags can now be set correctly when connecting | ||
135 | 129 | o Conversion fixes for BIT/YEARSET and Python to DATE/DATETIME | ||
136 | 130 | o Adding MySQL Client Errors and raising better exceptions based on errno. | ||
137 | 131 | |||
138 | 132 | Details: | ||
139 | 133 | 201: Geert Vanderkelen 2010-01-28 {0.1.3-devel} Using weak references | ||
140 | 134 | 200: Geert Vanderkelen 2010-01-28 Moving dict attributes of MySQLConverter to methods | ||
141 | 135 | 199: Geert Vanderkelen 2010-01-27 Fixing memory leak when opening cursors | ||
142 | 136 | 198: Geert Vanderkelen 2010-01-26 Exception raised in protocol module using errors.get_mysql_exception | ||
143 | 137 | 197: Geert Vanderkelen 2010-01-26 Fixing mysql.Error and simplying | ||
144 | 138 | 196: Geert Vanderkelen 2010-01-25 Adding MySQL server errors and better exceptions (part 1) | ||
145 | 139 | 195: Geert Vanderkelen 2010-01-25 Fixing rowcount in Cursor executemany() with no-result sets | ||
146 | 140 | 194: Geert Vanderkelen 2010-01-25 Using MySQL Client Error messages when connecting | ||
147 | 141 | 193: Geert Vanderkelen 2010-01-25 Implementing MySQL Client Errors | ||
148 | 142 | 192: Geert Vanderkelen 2010-01-23 Simplying the cursor.set_connection method raising correct Exception | ||
149 | 143 | 191: Geert Vanderkelen 2010-01-23 Changing get_flags_info to get_bit_info in a new class | ||
150 | 144 | 190: Geert Vanderkelen 2010-01-22 Implementing Raise-On-Warnings | ||
151 | 145 | 189: Geert Vanderkelen 2010-01-22 Fixed the conversion of binary fields | ||
152 | 146 | 188: Geert Vanderkelen 2010-01-22 Removing sys.path change | ||
153 | 147 | 187: Geert Vanderkelen 2010-01-22 Adding method to retrieve names given FieldFlag bitvalues | ||
154 | 148 | 186: Geert Vanderkelen 2010-01-22 Fixing _constants get_desc/get_info methods | ||
155 | 149 | 185: Geert Vanderkelen 2010-01-22 Adding missing check for BIT-field in to_python method | ||
156 | 150 | 184: Geert Vanderkelen 2010-01-22 Fixing buffered MySQL cursor & handling unread results | ||
157 | 151 | 183: Geert Vanderkelen 2010-01-20 Change in convesion of SET data type to Python set | ||
158 | 152 | 182: Geert Vanderkelen 2010-01-20 Adding tests for MySQL data types (numeric and temporal) | ||
159 | 153 | 181: Geert Vanderkelen 2010-01-19 Fixing Python to MySQL DATE/DATETIME conversions and throwing exceptions | ||
160 | 154 | 180: Geert Vanderkelen 2010-01-17 Removing fields and nrflds attributes from MySQLCursor | ||
161 | 155 | 179: Geert Vanderkelen 2010-01-15 Fixing MySQL BIT column conversion to Python | ||
162 | 156 | 178: Geert Vanderkelen 2010-01-14 Adding conversion for MySQL's BIT data type | ||
163 | 157 | 177: Geert Vanderkelen 2010-01-14 Updating inserts.py example so it commits | ||
164 | 158 | 176: Geert Vanderkelen 2010-01-14 Adding conversion for MySQL's YEAR data type | ||
165 | 159 | 175: Geert Vanderkelen 2009-12-31 Fix in unittests for comparing results from MySQL and what is expected | ||
166 | 160 | 174: Geert Vanderkelen 2009-12-31 Fix for setting client flags when connecting | ||
167 | 161 | 173: Geert Vanderkelen 2009-12-23 [merge] Merging from 0.1.2-devel release | ||
168 | 162 | 172: Geert Vanderkelen 2009-12-23 Fix for broken unicode characters when MySQL trimed the errmsg | ||
169 | 163 | 171: Geert Vanderkelen 2009-12-23 Fixing unicode usage for both Python 2.4+ and 3.1 | ||
170 | 164 | |||
171 | 165 | ----------------------------------------------------------------------- | ||
172 | 166 | 0.1.2-devel (2009-12-23) | ||
173 | 167 | ----------------------------------------------------------------------- | ||
174 | 168 | o Fixing unicode usage for both Python 2.4+ and 3.1 | ||
175 | 169 | * Setting 'use_unicode' at connection time is now working. | ||
176 | 170 | * conversion.py: removing regular expression for quoting backslashes. | ||
177 | 171 | * Adding test case for bug lp:499410 | ||
178 | 172 | |||
179 | 173 | Py3k specific: | ||
180 | 174 | * Strings from MySQL are decoded to the given character when use_unicode | ||
181 | 175 | is false | ||
182 | 176 | * The statement is encoded just before sending it to the MySQL server. | ||
183 | 177 | Internally, all is done in unicode. | ||
184 | 178 | * In conversion.py: removing _unicode_to_mysql, adding _bytes_to_mysql | ||
185 | 179 | * MySQLCursor.__unicode__ is obsolete and replaced with __str__ | ||
186 | 180 | * Removing tests for which the methods were deleted. | ||
187 | 181 | |||
188 | 182 | o Fix setting character set at connection | ||
189 | 183 | |||
190 | 184 | * mysql.connector.Connect(charset='latin1') now works as expected | ||
191 | 185 | * Default character set is (still) UTF-8. | ||
192 | 186 | * SET NAMES is only used when changing character set after connecting. | ||
193 | 187 | Use MySQL.set_charset(charsetname) to change. | ||
194 | 188 | * Test case added for bug report; fixing test case in test_protocol.py | ||
195 | 189 | to reflect the new default character set 'utf-8'. | ||
196 | 190 | |||
197 | 191 | ----------------------------------------------------------------------- | ||
198 | 192 | 0.1.1-devel (2009-12-21) | ||
199 | 193 | ----------------------------------------------------------------------- | ||
200 | 194 | o Added Python v3.1 support | ||
201 | 195 | * The subdirectory/module py3k/ contains Connector/Python compatible | ||
202 | 196 | with Python v3.1.1. | ||
203 | 197 | * setup.py will install the correct Connector/Python distribution | ||
204 | 198 | depending on the Python version. | ||
205 | 199 | * Test cases which were running against Python v2.4+ are also working | ||
206 | 200 | under Python v3.1 | ||
207 | 201 | * Examples found in py3k/examples should work with Python v3.1 | ||
208 | 202 | * The code will not check whether the Python version is supported. | ||
209 | 203 | |||
210 | 204 | o Misc. | ||
211 | 205 | * Using divmod() in MySQLConverter._timedelta_to_mysql() | ||
212 | 206 | * Avoiding imports and the use of isinstance() by putting code in | ||
213 | 207 | exceptions. | ||
214 | 208 | * Stop using types module. | ||
215 | 209 | |||
216 | 210 | |||
217 | 211 | >>>>>>> MERGE-SOURCE | ||
218 | 13 | 212 | ||
219 | === modified file 'README' | |||
220 | --- README 2010-05-21 13:52:17 +0000 | |||
221 | +++ README 2010-05-28 13:28:30 +0000 | |||
222 | @@ -1,7 +1,11 @@ | |||
223 | 1 | 1 | ||
224 | 2 | MySQL Connector/Python MySQL driver written in Python | 2 | MySQL Connector/Python MySQL driver written in Python |
225 | 3 | ============================================================================== | 3 | ============================================================================== |
226 | 4 | <<<<<<< TREE | ||
227 | 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. |
228 | 6 | ======= | ||
229 | 7 | Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
230 | 8 | >>>>>>> MERGE-SOURCE | ||
231 | 5 | Use is subject to license terms. (See COPYING) | 9 | Use is subject to license terms. (See COPYING) |
232 | 6 | 10 | ||
233 | 7 | MySQL Connector/Python is implementing the MySQL Client/Server protocol | 11 | MySQL Connector/Python is implementing the MySQL Client/Server protocol |
234 | 8 | 12 | ||
235 | === modified file 'make_release.py' | |||
236 | --- make_release.py 2010-05-21 13:52:17 +0000 | |||
237 | +++ make_release.py 2010-05-28 13:28:30 +0000 | |||
238 | @@ -1,7 +1,11 @@ | |||
239 | 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
240 | 2 | # -*- coding: utf-8 -*- | 2 | # -*- coding: utf-8 -*- |
241 | 3 | # MySQL Connector/Python - MySQL driver written in Python. | 3 | # MySQL Connector/Python - MySQL driver written in Python. |
242 | 4 | <<<<<<< TREE | ||
243 | 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. |
244 | 6 | ======= | ||
245 | 7 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
246 | 8 | >>>>>>> MERGE-SOURCE | ||
247 | 5 | # Use is subject to license terms. (See COPYING) | 9 | # Use is subject to license terms. (See COPYING) |
248 | 6 | 10 | ||
249 | 7 | # This program is free software; you can redistribute it and/or modify | 11 | # This program is free software; you can redistribute it and/or modify |
250 | 8 | 12 | ||
251 | === modified file 'python2/examples/client.py' (properties changed: +x to -x) | |||
252 | --- python2/examples/client.py 2010-05-21 13:52:17 +0000 | |||
253 | +++ python2/examples/client.py 2010-05-28 13:28:30 +0000 | |||
254 | @@ -1,7 +1,11 @@ | |||
255 | 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
256 | 2 | # -*- coding: utf-8 -*- | 2 | # -*- coding: utf-8 -*- |
257 | 3 | # MySQL Connector/Python - MySQL driver written in Python. | 3 | # MySQL Connector/Python - MySQL driver written in Python. |
258 | 4 | <<<<<<< TREE | ||
259 | 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. |
260 | 6 | ======= | ||
261 | 7 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
262 | 8 | >>>>>>> MERGE-SOURCE | ||
263 | 5 | # Use is subject to license terms. (See COPYING) | 9 | # Use is subject to license terms. (See COPYING) |
264 | 6 | 10 | ||
265 | 7 | # This program is free software; you can redistribute it and/or modify | 11 | # This program is free software; you can redistribute it and/or modify |
266 | 8 | 12 | ||
267 | === modified file 'python2/mysql/connector/__init__.py' | |||
268 | --- python2/mysql/connector/__init__.py 2009-12-31 10:34:36 +0000 | |||
269 | +++ python2/mysql/connector/__init__.py 2010-05-28 13:28:30 +0000 | |||
270 | @@ -1,5 +1,5 @@ | |||
271 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
273 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
274 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
275 | 4 | 4 | ||
276 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
277 | 6 | 6 | ||
278 | === modified file 'python2/mysql/connector/_version.py' | |||
279 | --- python2/mysql/connector/_version.py 2010-05-21 09:32:25 +0000 | |||
280 | +++ python2/mysql/connector/_version.py 2010-05-28 13:28:30 +0000 | |||
281 | @@ -1,5 +1,9 @@ | |||
282 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
283 | 2 | <<<<<<< TREE | ||
284 | 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. |
285 | 4 | ======= | ||
286 | 5 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
287 | 6 | >>>>>>> MERGE-SOURCE | ||
288 | 3 | # Use is subject to license terms. (See COPYING) | 7 | # Use is subject to license terms. (See COPYING) |
289 | 4 | 8 | ||
290 | 5 | # This program is free software; you can redistribute it and/or modify | 9 | # This program is free software; you can redistribute it and/or modify |
291 | 6 | 10 | ||
292 | === modified file 'python2/mysql/connector/connection.py' | |||
293 | --- python2/mysql/connector/connection.py 2010-05-23 12:16:35 +0000 | |||
294 | +++ python2/mysql/connector/connection.py 2010-05-28 13:28:30 +0000 | |||
295 | @@ -1,5 +1,9 @@ | |||
296 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
297 | 2 | <<<<<<< TREE | ||
298 | 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. |
299 | 4 | ======= | ||
300 | 5 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
301 | 6 | >>>>>>> MERGE-SOURCE | ||
302 | 3 | # Use is subject to license terms. (See COPYING) | 7 | # Use is subject to license terms. (See COPYING) |
303 | 4 | 8 | ||
304 | 5 | # This program is free software; you can redistribute it and/or modify | 9 | # This program is free software; you can redistribute it and/or modify |
305 | @@ -88,14 +92,14 @@ | |||
306 | 88 | if pktnr == -1 and totalsize > 4: | 92 | if pktnr == -1 and totalsize > 4: |
307 | 89 | pktsize = utils.intread(buf[0:3]) | 93 | pktsize = utils.intread(buf[0:3]) |
308 | 90 | pktnr = utils.intread(buf[3]) | 94 | pktnr = utils.intread(buf[3]) |
310 | 91 | if pktnr > -1 and totalsize >= pktsize: | 95 | if pktnr > -1 and totalsize >= pktsize+4: |
311 | 92 | size = pktsize+4 | 96 | size = pktsize+4 |
312 | 93 | self.buffer.append(buf[0:size]) | 97 | self.buffer.append(buf[0:size]) |
313 | 94 | buf = buf[size:] | 98 | buf = buf[size:] |
314 | 95 | pktnr = -1 | 99 | pktnr = -1 |
315 | 96 | if len(buf) == 0: | 100 | if len(buf) == 0: |
316 | 97 | break | 101 | break |
318 | 98 | elif len(buf) < pktsize: | 102 | elif len(buf) < pktsize+4: |
319 | 99 | buf += self.sock.recv(self.recvsize, self.socket_flags) | 103 | buf += self.sock.recv(self.recvsize, self.socket_flags) |
320 | 100 | except socket.error, e: | 104 | except socket.error, e: |
321 | 101 | raise errors.InterfaceError(errno=2055, | 105 | raise errors.InterfaceError(errno=2055, |
322 | 102 | 106 | ||
323 | === modified file 'python2/mysql/connector/constants.py' | |||
324 | --- python2/mysql/connector/constants.py 2010-05-14 11:41:54 +0000 | |||
325 | +++ python2/mysql/connector/constants.py 2010-05-28 13:28:30 +0000 | |||
326 | @@ -1,5 +1,5 @@ | |||
327 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
329 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
330 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
331 | 4 | 4 | ||
332 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
333 | 6 | 6 | ||
334 | === modified file 'python2/mysql/connector/conversion.py' | |||
335 | --- python2/mysql/connector/conversion.py 2010-05-13 07:01:07 +0000 | |||
336 | +++ python2/mysql/connector/conversion.py 2010-05-28 13:28:30 +0000 | |||
337 | @@ -1,5 +1,5 @@ | |||
338 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
340 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
341 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
342 | 4 | 4 | ||
343 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
344 | @@ -413,4 +413,4 @@ | |||
345 | 413 | return v | 413 | return v |
346 | 414 | 414 | ||
347 | 415 | return self._STRING_to_python(v, dsc) | 415 | return self._STRING_to_python(v, dsc) |
348 | 416 | |||
349 | 417 | \ No newline at end of file | 416 | \ No newline at end of file |
350 | 417 | |||
351 | 418 | 418 | ||
352 | === modified file 'python2/mysql/connector/cursor.py' | |||
353 | --- python2/mysql/connector/cursor.py 2010-05-16 11:38:16 +0000 | |||
354 | +++ python2/mysql/connector/cursor.py 2010-05-28 13:28:30 +0000 | |||
355 | @@ -1,5 +1,5 @@ | |||
356 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
358 | 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. |
359 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
360 | 4 | 4 | ||
361 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
362 | @@ -605,4 +605,4 @@ | |||
363 | 605 | return res | 605 | return res |
364 | 606 | 606 | ||
365 | 607 | 607 | ||
366 | 608 | |||
367 | 609 | \ No newline at end of file | 608 | \ No newline at end of file |
368 | 609 | |||
369 | 610 | 610 | ||
370 | === modified file 'python2/mysql/connector/dbapi.py' | |||
371 | --- python2/mysql/connector/dbapi.py 2009-11-26 16:14:48 +0000 | |||
372 | +++ python2/mysql/connector/dbapi.py 2010-05-28 13:28:30 +0000 | |||
373 | @@ -1,5 +1,5 @@ | |||
374 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
376 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
377 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
378 | 4 | 4 | ||
379 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
380 | 6 | 6 | ||
381 | === modified file 'python2/mysql/connector/errors.py' | |||
382 | --- python2/mysql/connector/errors.py 2010-05-23 12:16:35 +0000 | |||
383 | +++ python2/mysql/connector/errors.py 2010-05-28 13:28:30 +0000 | |||
384 | @@ -1,5 +1,9 @@ | |||
385 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
386 | 2 | <<<<<<< TREE | ||
387 | 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. |
388 | 4 | ======= | ||
389 | 5 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
390 | 6 | >>>>>>> MERGE-SOURCE | ||
391 | 3 | # Use is subject to license terms. (See COPYING) | 7 | # Use is subject to license terms. (See COPYING) |
392 | 4 | 8 | ||
393 | 5 | # This program is free software; you can redistribute it and/or modify | 9 | # This program is free software; you can redistribute it and/or modify |
394 | 6 | 10 | ||
395 | === modified file 'python2/mysql/connector/mysql.py' | |||
396 | --- python2/mysql/connector/mysql.py 2010-05-20 09:43:47 +0000 | |||
397 | +++ python2/mysql/connector/mysql.py 2010-05-28 13:28:30 +0000 | |||
398 | @@ -1,5 +1,5 @@ | |||
399 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
401 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
402 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
403 | 4 | 4 | ||
404 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
405 | 6 | 6 | ||
406 | === modified file 'python2/mysql/connector/protocol.py' | |||
407 | --- python2/mysql/connector/protocol.py 2010-05-23 11:15:53 +0000 | |||
408 | +++ python2/mysql/connector/protocol.py 2010-05-28 13:28:30 +0000 | |||
409 | @@ -1,5 +1,5 @@ | |||
410 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
412 | 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. |
413 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
414 | 4 | 4 | ||
415 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
416 | 6 | 6 | ||
417 | === modified file 'python2/mysql/connector/utils.py' | |||
418 | --- python2/mysql/connector/utils.py 2010-05-05 13:27:52 +0000 | |||
419 | +++ python2/mysql/connector/utils.py 2010-05-28 13:28:30 +0000 | |||
420 | @@ -1,5 +1,5 @@ | |||
421 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
423 | 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. |
424 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
425 | 4 | 4 | ||
426 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
427 | 6 | 6 | ||
428 | === modified file 'python2/tests/__init__.py' | |||
429 | --- python2/tests/__init__.py 2010-01-20 13:01:19 +0000 | |||
430 | +++ python2/tests/__init__.py 2010-05-28 13:28:30 +0000 | |||
431 | @@ -1,5 +1,5 @@ | |||
432 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
434 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
435 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
436 | 4 | 4 | ||
437 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
438 | @@ -126,4 +126,4 @@ | |||
439 | 126 | 126 | ||
440 | 127 | def printmsg(msg=None): | 127 | def printmsg(msg=None): |
441 | 128 | if msg is not None: | 128 | if msg is not None: |
442 | 129 | print(msg) | ||
443 | 130 | \ No newline at end of file | 129 | \ No newline at end of file |
444 | 130 | print(msg) | ||
445 | 131 | 131 | ||
446 | === modified file 'python2/tests/test_bugs.py' | |||
447 | --- python2/tests/test_bugs.py 2010-05-23 10:34:51 +0000 | |||
448 | +++ python2/tests/test_bugs.py 2010-05-28 13:28:30 +0000 | |||
449 | @@ -1,5 +1,5 @@ | |||
450 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
452 | 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. |
453 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
454 | 4 | 4 | ||
455 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
456 | @@ -505,3 +505,45 @@ | |||
457 | 505 | self.assertEqual(exp,self.c.fetchall()) | 505 | self.assertEqual(exp,self.c.fetchall()) |
458 | 506 | self.assertEqual(None,self.c.next_resultset()) | 506 | self.assertEqual(None,self.c.next_resultset()) |
459 | 507 | 507 | ||
460 | 508 | class Bug551533and586003(tests.MySQLConnectorTests): | ||
461 | 509 | """lp: 551533, 586003: impossible to retrive big result sets""" | ||
462 | 510 | |||
463 | 511 | def setUp(self): | ||
464 | 512 | config = self.getMySQLConfig() | ||
465 | 513 | config['connection_timeout'] = 2 | ||
466 | 514 | self.db = mysql.MySQL(**config) | ||
467 | 515 | self.c = self.db.cursor() | ||
468 | 516 | |||
469 | 517 | self.tbl = 'Bug551533' | ||
470 | 518 | self.c.execute("DROP TABLE IF EXISTS %s" % (self.tbl)) | ||
471 | 519 | self.c.execute("""CREATE TABLE %s ( | ||
472 | 520 | id INT AUTO_INCREMENT KEY, | ||
473 | 521 | c1 VARCHAR(100) DEFAULT 'abcabcabcabcabcabcabcabcabcabc' | ||
474 | 522 | )""" % (self.tbl)) | ||
475 | 523 | |||
476 | 524 | def tearDown(self): | ||
477 | 525 | try: | ||
478 | 526 | self.c = db.cursor("DROP TABLE IF EXISTS %s" % (self.tbl)) | ||
479 | 527 | self.c.close() | ||
480 | 528 | except: | ||
481 | 529 | pass | ||
482 | 530 | self.db.close() | ||
483 | 531 | |||
484 | 532 | def test_select(self): | ||
485 | 533 | """lp: 551533, 586003: impossible to retrive big result sets""" | ||
486 | 534 | |||
487 | 535 | insert = "INSERT INTO %s VALUES ()" % (self.tbl) | ||
488 | 536 | exp = 20000 | ||
489 | 537 | i = exp | ||
490 | 538 | while i > 0: | ||
491 | 539 | self.c.execute(insert) | ||
492 | 540 | i -= 1 | ||
493 | 541 | |||
494 | 542 | self.c.execute('SELECT * FROM %s LIMIT 20000' % (self.tbl)) | ||
495 | 543 | try: | ||
496 | 544 | rows = self.c.fetchall() | ||
497 | 545 | except: | ||
498 | 546 | self.fail("Failed retrieving big result set") | ||
499 | 547 | else: | ||
500 | 548 | self.assertEqual(exp, self.c.rowcount) | ||
501 | 549 | |||
502 | 508 | 550 | ||
503 | === modified file 'python2/tests/test_constants.py' | |||
504 | --- python2/tests/test_constants.py 2010-05-14 11:41:54 +0000 | |||
505 | +++ python2/tests/test_constants.py 2010-05-28 13:28:30 +0000 | |||
506 | @@ -1,5 +1,5 @@ | |||
507 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
509 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
510 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
511 | 4 | 4 | ||
512 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
513 | @@ -284,4 +284,4 @@ | |||
514 | 284 | 284 | ||
515 | 285 | self.assertEqual(exp, constants.CharacterSet.get_supported()) | 285 | self.assertEqual(exp, constants.CharacterSet.get_supported()) |
516 | 286 | 286 | ||
517 | 287 | |||
518 | 288 | \ No newline at end of file | 287 | \ No newline at end of file |
519 | 288 | |||
520 | 289 | 289 | ||
521 | === modified file 'python2/tests/test_conversion.py' | |||
522 | --- python2/tests/test_conversion.py 2010-01-22 14:47:52 +0000 | |||
523 | +++ python2/tests/test_conversion.py 2010-05-28 13:28:30 +0000 | |||
524 | @@ -1,6 +1,6 @@ | |||
525 | 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
526 | 2 | # MySQL Connector/Python - MySQL driver written in Python. | 2 | # MySQL Connector/Python - MySQL driver written in Python. |
528 | 3 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 3 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
529 | 4 | # Use is subject to license terms. (See COPYING) | 4 | # Use is subject to license terms. (See COPYING) |
530 | 5 | 5 | ||
531 | 6 | # This program is free software; you can redistribute it and/or modify | 6 | # This program is free software; you can redistribute it and/or modify |
532 | @@ -429,4 +429,4 @@ | |||
533 | 429 | res = self.cnv._BLOB_to_python(data,desc) | 429 | res = self.cnv._BLOB_to_python(data,desc) |
534 | 430 | 430 | ||
535 | 431 | self.assertEqual(data,res) | 431 | self.assertEqual(data,res) |
536 | 432 | |||
537 | 433 | \ No newline at end of file | 432 | \ No newline at end of file |
538 | 433 | |||
539 | 434 | 434 | ||
540 | === modified file 'python2/tests/test_cursor.py' | |||
541 | --- python2/tests/test_cursor.py 2010-05-05 14:08:47 +0000 | |||
542 | +++ python2/tests/test_cursor.py 2010-05-28 13:28:30 +0000 | |||
543 | @@ -1,5 +1,5 @@ | |||
544 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
546 | 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. |
547 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
548 | 4 | 4 | ||
549 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
550 | @@ -821,4 +821,4 @@ | |||
551 | 821 | pass | 821 | pass |
552 | 822 | else: | 822 | else: |
553 | 823 | self.fail("Did not get exception while raising warnings.") | 823 | self.fail("Did not get exception while raising warnings.") |
554 | 824 | |||
555 | 825 | \ No newline at end of file | 824 | \ No newline at end of file |
556 | 825 | |||
557 | 826 | 826 | ||
558 | === modified file 'python2/tests/test_examples.py' | |||
559 | --- python2/tests/test_examples.py 2010-05-05 14:08:47 +0000 | |||
560 | +++ python2/tests/test_examples.py 2010-05-28 13:28:30 +0000 | |||
561 | @@ -1,5 +1,5 @@ | |||
562 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
564 | 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. |
565 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
566 | 4 | 4 | ||
567 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
568 | @@ -99,4 +99,4 @@ | |||
569 | 99 | import examples.multi_resultsets as exp | 99 | import examples.multi_resultsets as exp |
570 | 100 | except StandardError, e: | 100 | except StandardError, e: |
571 | 101 | self.fail(e) | 101 | self.fail(e) |
572 | 102 | self._exec_main(exp) | ||
573 | 103 | \ No newline at end of file | 102 | \ No newline at end of file |
574 | 103 | self._exec_main(exp) | ||
575 | 104 | 104 | ||
576 | === modified file 'python2/tests/test_mysql_datatypes.py' | |||
577 | --- python2/tests/test_mysql_datatypes.py 2010-04-24 16:53:06 +0000 | |||
578 | +++ python2/tests/test_mysql_datatypes.py 2010-05-28 13:28:30 +0000 | |||
579 | @@ -1,5 +1,5 @@ | |||
580 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
582 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
583 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
584 | 4 | 4 | ||
585 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
586 | @@ -328,4 +328,4 @@ | |||
587 | 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]) |
588 | 329 | 329 | ||
589 | 330 | c.close() | 330 | c.close() |
590 | 331 | |||
591 | 332 | \ No newline at end of file | 331 | \ No newline at end of file |
592 | 332 | |||
593 | 333 | 333 | ||
594 | === modified file 'python2/tests/test_pep249.py' | |||
595 | --- python2/tests/test_pep249.py 2010-04-24 16:53:06 +0000 | |||
596 | +++ python2/tests/test_pep249.py 2010-05-28 13:28:30 +0000 | |||
597 | @@ -1,5 +1,5 @@ | |||
598 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
600 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
601 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
602 | 4 | 4 | ||
603 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
604 | 6 | 6 | ||
605 | === modified file 'python2/tests/test_protocol.py' | |||
606 | --- python2/tests/test_protocol.py 2010-05-23 11:15:53 +0000 | |||
607 | +++ python2/tests/test_protocol.py 2010-05-28 13:28:30 +0000 | |||
608 | @@ -1,5 +1,5 @@ | |||
609 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
611 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
612 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
613 | 4 | 4 | ||
614 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
615 | 6 | 6 | ||
616 | === modified file 'python2/tests/test_utils.py' | |||
617 | --- python2/tests/test_utils.py 2010-02-18 16:33:28 +0000 | |||
618 | +++ python2/tests/test_utils.py 2010-05-28 13:28:30 +0000 | |||
619 | @@ -1,5 +1,5 @@ | |||
620 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
622 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
623 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
624 | 4 | 4 | ||
625 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
626 | 6 | 6 | ||
627 | === modified file 'python3/mysql/connector/__init__.py' | |||
628 | --- python3/mysql/connector/__init__.py 2009-12-31 10:34:36 +0000 | |||
629 | +++ python3/mysql/connector/__init__.py 2010-05-28 13:28:30 +0000 | |||
630 | @@ -1,5 +1,5 @@ | |||
631 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
633 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
634 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
635 | 4 | 4 | ||
636 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
637 | 6 | 6 | ||
638 | === modified file 'python3/mysql/connector/_version.py' | |||
639 | --- python3/mysql/connector/_version.py 2010-05-21 09:32:25 +0000 | |||
640 | +++ python3/mysql/connector/_version.py 2010-05-28 13:28:30 +0000 | |||
641 | @@ -1,5 +1,9 @@ | |||
642 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
643 | 2 | <<<<<<< TREE | ||
644 | 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. |
645 | 4 | ======= | ||
646 | 5 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
647 | 6 | >>>>>>> MERGE-SOURCE | ||
648 | 3 | # Use is subject to license terms. (See COPYING) | 7 | # Use is subject to license terms. (See COPYING) |
649 | 4 | 8 | ||
650 | 5 | # This program is free software; you can redistribute it and/or modify | 9 | # This program is free software; you can redistribute it and/or modify |
651 | 6 | 10 | ||
652 | === modified file 'python3/mysql/connector/connection.py' | |||
653 | --- python3/mysql/connector/connection.py 2010-05-23 12:16:35 +0000 | |||
654 | +++ python3/mysql/connector/connection.py 2010-05-28 13:28:30 +0000 | |||
655 | @@ -1,5 +1,9 @@ | |||
656 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
657 | 2 | <<<<<<< TREE | ||
658 | 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. |
659 | 4 | ======= | ||
660 | 5 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
661 | 6 | >>>>>>> MERGE-SOURCE | ||
662 | 3 | # Use is subject to license terms. (See COPYING) | 7 | # Use is subject to license terms. (See COPYING) |
663 | 4 | 8 | ||
664 | 5 | # This program is free software; you can redistribute it and/or modify | 9 | # This program is free software; you can redistribute it and/or modify |
665 | @@ -87,14 +91,14 @@ | |||
666 | 87 | if pktnr == -1 and totalsize > 4: | 91 | if pktnr == -1 and totalsize > 4: |
667 | 88 | pktsize = utils.intread(buf[0:3]) | 92 | pktsize = utils.intread(buf[0:3]) |
668 | 89 | pktnr = utils.intread(buf[3]) | 93 | pktnr = utils.intread(buf[3]) |
670 | 90 | if pktnr > -1 and totalsize >= pktsize: | 94 | if pktnr > -1 and totalsize >= pktsize+4: |
671 | 91 | size = pktsize+4 | 95 | size = pktsize+4 |
672 | 92 | self.buffer.append(buf[0:size]) | 96 | self.buffer.append(buf[0:size]) |
673 | 93 | buf = buf[size:] | 97 | buf = buf[size:] |
674 | 94 | pktnr = -1 | 98 | pktnr = -1 |
675 | 95 | if len(buf) == 0: | 99 | if len(buf) == 0: |
676 | 96 | break | 100 | break |
678 | 97 | elif len(buf) < pktsize: | 101 | elif len(buf) < pktsize+4: |
679 | 98 | buf += self.sock.recv(self.recvsize, self.socket_flags) | 102 | buf += self.sock.recv(self.recvsize, self.socket_flags) |
680 | 99 | except socket.error as e: | 103 | except socket.error as e: |
681 | 100 | raise errors.InterfaceError(errno=2055, | 104 | raise errors.InterfaceError(errno=2055, |
682 | 101 | 105 | ||
683 | === modified file 'python3/mysql/connector/constants.py' | |||
684 | --- python3/mysql/connector/constants.py 2010-05-14 11:41:54 +0000 | |||
685 | +++ python3/mysql/connector/constants.py 2010-05-28 13:28:30 +0000 | |||
686 | @@ -1,5 +1,5 @@ | |||
687 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
689 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
690 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
691 | 4 | 4 | ||
692 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
693 | 6 | 6 | ||
694 | === modified file 'python3/mysql/connector/conversion.py' | |||
695 | --- python3/mysql/connector/conversion.py 2010-05-13 07:01:07 +0000 | |||
696 | +++ python3/mysql/connector/conversion.py 2010-05-28 13:28:30 +0000 | |||
697 | @@ -1,5 +1,5 @@ | |||
698 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
700 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
701 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
702 | 4 | 4 | ||
703 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
704 | 6 | 6 | ||
705 | === modified file 'python3/mysql/connector/cursor.py' | |||
706 | --- python3/mysql/connector/cursor.py 2010-05-16 11:27:39 +0000 | |||
707 | +++ python3/mysql/connector/cursor.py 2010-05-28 13:28:30 +0000 | |||
708 | @@ -1,5 +1,5 @@ | |||
709 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
711 | 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. |
712 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
713 | 4 | 4 | ||
714 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
715 | 6 | 6 | ||
716 | === modified file 'python3/mysql/connector/dbapi.py' | |||
717 | --- python3/mysql/connector/dbapi.py 2009-12-21 15:53:20 +0000 | |||
718 | +++ python3/mysql/connector/dbapi.py 2010-05-28 13:28:30 +0000 | |||
719 | @@ -1,5 +1,5 @@ | |||
720 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
722 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
723 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
724 | 4 | 4 | ||
725 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
726 | 6 | 6 | ||
727 | === modified file 'python3/mysql/connector/errors.py' | |||
728 | --- python3/mysql/connector/errors.py 2010-05-23 12:16:35 +0000 | |||
729 | +++ python3/mysql/connector/errors.py 2010-05-28 13:28:30 +0000 | |||
730 | @@ -1,5 +1,5 @@ | |||
731 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
733 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
734 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
735 | 4 | 4 | ||
736 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
737 | 6 | 6 | ||
738 | === modified file 'python3/mysql/connector/mysql.py' | |||
739 | --- python3/mysql/connector/mysql.py 2010-05-20 09:43:47 +0000 | |||
740 | +++ python3/mysql/connector/mysql.py 2010-05-28 13:28:30 +0000 | |||
741 | @@ -1,5 +1,5 @@ | |||
742 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
744 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
745 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
746 | 4 | 4 | ||
747 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
748 | 6 | 6 | ||
749 | === modified file 'python3/mysql/connector/protocol.py' | |||
750 | --- python3/mysql/connector/protocol.py 2010-05-23 11:15:53 +0000 | |||
751 | +++ python3/mysql/connector/protocol.py 2010-05-28 13:28:30 +0000 | |||
752 | @@ -1,5 +1,5 @@ | |||
753 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
755 | 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. |
756 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
757 | 4 | 4 | ||
758 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
759 | 6 | 6 | ||
760 | === modified file 'python3/mysql/connector/utils.py' | |||
761 | --- python3/mysql/connector/utils.py 2010-05-05 13:27:52 +0000 | |||
762 | +++ python3/mysql/connector/utils.py 2010-05-28 13:28:30 +0000 | |||
763 | @@ -1,5 +1,5 @@ | |||
764 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
766 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
767 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
768 | 4 | 4 | ||
769 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
770 | 6 | 6 | ||
771 | === modified file 'python3/tests/__init__.py' | |||
772 | --- python3/tests/__init__.py 2010-01-20 13:01:19 +0000 | |||
773 | +++ python3/tests/__init__.py 2010-05-28 13:28:30 +0000 | |||
774 | @@ -1,5 +1,5 @@ | |||
775 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
777 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
778 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
779 | 4 | 4 | ||
780 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
781 | 6 | 6 | ||
782 | === modified file 'python3/tests/test_bugs.py' | |||
783 | --- python3/tests/test_bugs.py 2010-05-23 10:34:51 +0000 | |||
784 | +++ python3/tests/test_bugs.py 2010-05-28 13:28:30 +0000 | |||
785 | @@ -1,5 +1,5 @@ | |||
786 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
788 | 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. |
789 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
790 | 4 | 4 | ||
791 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
792 | @@ -520,3 +520,45 @@ | |||
793 | 520 | exp = [(1, 10), (2, 20)] | 520 | exp = [(1, 10), (2, 20)] |
794 | 521 | self.assertEqual(exp,self.c.fetchall()) | 521 | self.assertEqual(exp,self.c.fetchall()) |
795 | 522 | self.assertEqual(None,self.c.next_resultset()) | 522 | self.assertEqual(None,self.c.next_resultset()) |
796 | 523 | |||
797 | 524 | class Bug551533and586003(tests.MySQLConnectorTests): | ||
798 | 525 | """lp: 551533, 586003: impossible to retrive big result sets""" | ||
799 | 526 | |||
800 | 527 | def setUp(self): | ||
801 | 528 | config = self.getMySQLConfig() | ||
802 | 529 | config['connection_timeout'] = 2 | ||
803 | 530 | self.db = mysql.MySQL(**config) | ||
804 | 531 | self.c = self.db.cursor() | ||
805 | 532 | |||
806 | 533 | self.tbl = 'Bug551533' | ||
807 | 534 | self.c.execute("DROP TABLE IF EXISTS %s" % (self.tbl)) | ||
808 | 535 | self.c.execute("""CREATE TABLE %s ( | ||
809 | 536 | id INT AUTO_INCREMENT KEY, | ||
810 | 537 | c1 VARCHAR(100) DEFAULT 'abcabcabcabcabcabcabcabcabcabc' | ||
811 | 538 | )""" % (self.tbl)) | ||
812 | 539 | |||
813 | 540 | def tearDown(self): | ||
814 | 541 | try: | ||
815 | 542 | self.c = db.cursor("DROP TABLE IF EXISTS %s" % (self.tbl)) | ||
816 | 543 | self.c.close() | ||
817 | 544 | except: | ||
818 | 545 | pass | ||
819 | 546 | self.db.close() | ||
820 | 547 | |||
821 | 548 | def test_select(self): | ||
822 | 549 | """lp: 551533, 586003: impossible to retrive big result sets""" | ||
823 | 550 | |||
824 | 551 | insert = "INSERT INTO %s VALUES ()" % (self.tbl) | ||
825 | 552 | exp = 20000 | ||
826 | 553 | i = exp | ||
827 | 554 | while i > 0: | ||
828 | 555 | self.c.execute(insert) | ||
829 | 556 | i -= 1 | ||
830 | 557 | |||
831 | 558 | self.c.execute('SELECT * FROM %s LIMIT 20000' % (self.tbl)) | ||
832 | 559 | try: | ||
833 | 560 | rows = self.c.fetchall() | ||
834 | 561 | except: | ||
835 | 562 | self.fail("Failed retrieving big result set") | ||
836 | 563 | else: | ||
837 | 564 | self.assertEqual(exp, self.c.rowcount) | ||
838 | 523 | 565 | ||
839 | === modified file 'python3/tests/test_constants.py' | |||
840 | --- python3/tests/test_constants.py 2010-05-14 11:41:54 +0000 | |||
841 | +++ python3/tests/test_constants.py 2010-05-28 13:28:30 +0000 | |||
842 | @@ -1,5 +1,5 @@ | |||
843 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
845 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
846 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
847 | 4 | 4 | ||
848 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
849 | @@ -283,4 +283,4 @@ | |||
850 | 283 | 283 | ||
851 | 284 | self.assertEqual(exp, constants.CharacterSet.get_supported()) | 284 | self.assertEqual(exp, constants.CharacterSet.get_supported()) |
852 | 285 | 285 | ||
853 | 286 | |||
854 | 287 | \ No newline at end of file | 286 | \ No newline at end of file |
855 | 287 | |||
856 | 288 | 288 | ||
857 | === modified file 'python3/tests/test_conversion.py' | |||
858 | --- python3/tests/test_conversion.py 2010-01-22 14:47:52 +0000 | |||
859 | +++ python3/tests/test_conversion.py 2010-05-28 13:28:30 +0000 | |||
860 | @@ -1,6 +1,6 @@ | |||
861 | 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
862 | 2 | # MySQL Connector/Python - MySQL driver written in Python. | 2 | # MySQL Connector/Python - MySQL driver written in Python. |
864 | 3 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 3 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
865 | 4 | # Use is subject to license terms. (See COPYING) | 4 | # Use is subject to license terms. (See COPYING) |
866 | 5 | 5 | ||
867 | 6 | # This program is free software; you can redistribute it and/or modify | 6 | # This program is free software; you can redistribute it and/or modify |
868 | @@ -426,4 +426,4 @@ | |||
869 | 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) |
870 | 427 | res = self.cnv._BLOB_to_python(data,desc) | 427 | res = self.cnv._BLOB_to_python(data,desc) |
871 | 428 | 428 | ||
872 | 429 | self.assertEqual(data,res) | ||
873 | 430 | \ No newline at end of file | 429 | \ No newline at end of file |
874 | 430 | self.assertEqual(data,res) | ||
875 | 431 | 431 | ||
876 | === modified file 'python3/tests/test_cursor.py' | |||
877 | --- python3/tests/test_cursor.py 2010-05-05 14:08:47 +0000 | |||
878 | +++ python3/tests/test_cursor.py 2010-05-28 13:28:30 +0000 | |||
879 | @@ -1,5 +1,5 @@ | |||
880 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
882 | 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. |
883 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
884 | 4 | 4 | ||
885 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
886 | 6 | 6 | ||
887 | === modified file 'python3/tests/test_examples.py' | |||
888 | --- python3/tests/test_examples.py 2010-05-21 13:52:17 +0000 | |||
889 | +++ python3/tests/test_examples.py 2010-05-28 13:28:30 +0000 | |||
890 | @@ -1,5 +1,5 @@ | |||
891 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
893 | 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. |
894 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
895 | 4 | 4 | ||
896 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
897 | @@ -99,4 +99,4 @@ | |||
898 | 99 | except StandardError as e: | 99 | except StandardError as e: |
899 | 100 | self.fail(e) | 100 | self.fail(e) |
900 | 101 | self._exec_main(exp) | 101 | self._exec_main(exp) |
901 | 102 | |||
902 | 103 | \ No newline at end of file | 102 | \ No newline at end of file |
903 | 103 | |||
904 | 104 | 104 | ||
905 | === modified file 'python3/tests/test_mysql_datatypes.py' | |||
906 | --- python3/tests/test_mysql_datatypes.py 2010-04-24 16:53:06 +0000 | |||
907 | +++ python3/tests/test_mysql_datatypes.py 2010-05-28 13:28:30 +0000 | |||
908 | @@ -1,5 +1,5 @@ | |||
909 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
911 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
912 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
913 | 4 | 4 | ||
914 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
915 | 6 | 6 | ||
916 | === modified file 'python3/tests/test_pep249.py' | |||
917 | --- python3/tests/test_pep249.py 2010-04-24 16:53:06 +0000 | |||
918 | +++ python3/tests/test_pep249.py 2010-05-28 13:28:30 +0000 | |||
919 | @@ -1,5 +1,5 @@ | |||
920 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
922 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
923 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
924 | 4 | 4 | ||
925 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
926 | 6 | 6 | ||
927 | === modified file 'python3/tests/test_protocol.py' | |||
928 | --- python3/tests/test_protocol.py 2010-05-23 11:15:53 +0000 | |||
929 | +++ python3/tests/test_protocol.py 2010-05-28 13:28:30 +0000 | |||
930 | @@ -1,5 +1,5 @@ | |||
931 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
933 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
934 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
935 | 4 | 4 | ||
936 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
937 | 6 | 6 | ||
938 | === modified file 'python3/tests/test_utils.py' | |||
939 | --- python3/tests/test_utils.py 2010-02-18 16:33:28 +0000 | |||
940 | +++ python3/tests/test_utils.py 2010-05-28 13:28:30 +0000 | |||
941 | @@ -1,5 +1,5 @@ | |||
942 | 1 | # MySQL Connector/Python - MySQL driver written in Python. | 1 | # MySQL Connector/Python - MySQL driver written in Python. |
944 | 2 | # Copyright 2009 Sun Microsystems, Inc. All rights reserved | 2 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. |
945 | 3 | # Use is subject to license terms. (See COPYING) | 3 | # Use is subject to license terms. (See COPYING) |
946 | 4 | 4 | ||
947 | 5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
948 | 6 | 6 | ||
949 | === modified file 'setup.py' (properties changed: +x to -x) | |||
950 | --- setup.py 2010-05-21 13:52:17 +0000 | |||
951 | +++ setup.py 2010-05-28 13:28:30 +0000 | |||
952 | @@ -1,7 +1,11 @@ | |||
953 | 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
954 | 2 | # -*- coding: utf-8 -*- | 2 | # -*- coding: utf-8 -*- |
955 | 3 | # MySQL Connector/Python - MySQL driver written in Python. | 3 | # MySQL Connector/Python - MySQL driver written in Python. |
956 | 4 | <<<<<<< TREE | ||
957 | 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. |
958 | 6 | ======= | ||
959 | 7 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
960 | 8 | >>>>>>> MERGE-SOURCE | ||
961 | 5 | # Use is subject to license terms. (See COPYING) | 9 | # Use is subject to license terms. (See COPYING) |
962 | 6 | 10 | ||
963 | 7 | # This program is free software; you can redistribute it and/or modify | 11 | # This program is free software; you can redistribute it and/or modify |
964 | 8 | 12 | ||
965 | === modified file 'unittests.py' (properties changed: +x to -x) | |||
966 | --- unittests.py 2010-05-21 13:52:17 +0000 | |||
967 | +++ unittests.py 2010-05-28 13:28:30 +0000 | |||
968 | @@ -1,7 +1,11 @@ | |||
969 | 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
970 | 2 | # -*- coding: utf-8 -*- | 2 | # -*- coding: utf-8 -*- |
971 | 3 | # MySQL Connector/Python - MySQL driver written in Python. | 3 | # MySQL Connector/Python - MySQL driver written in Python. |
972 | 4 | <<<<<<< TREE | ||
973 | 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. |
974 | 6 | ======= | ||
975 | 7 | # Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved. | ||
976 | 8 | >>>>>>> MERGE-SOURCE | ||
977 | 5 | # Use is subject to license terms. (See COPYING) | 9 | # Use is subject to license terms. (See COPYING) |
978 | 6 | 10 | ||
979 | 7 | # This program is free software; you can redistribute it and/or modify | 11 | # This program is free software; you can redistribute it and/or modify |