Bug #79780 Importing world.sql fails with cext enabled
Submitted: 26 Dec 2015 9:43 Modified: 21 Mar 2017 15:40
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / Python Severity:S3 (Non-critical)
Version:2.1.3 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[26 Dec 2015 9:43] Daniël van Eeden
Description:
Loading the world database from http://downloads.mysql.com/docs/world.sql.gz with MySQL Connector/Python fails with an IndexError if the C Extension is used.

How to repeat:
See attachment
[26 Dec 2015 9:44] Daniël van Eeden
Jupyter IPython notebook

Attachment: cext world bug.ipynb (application/octet-stream, text), 5.06 KiB.

[26 Dec 2015 9:48] Daniël van Eeden
The rendered file:
https://gist.github.com/dveeden/d9e43f3a5c584fdb1f6a
[26 Dec 2015 12:17] Daniël van Eeden
PR: https://github.com/mysql/mysql-connector-python/pull/11
[29 Dec 2015 0:17] OCA Admin
Contribution submitted via Github - Fix for MySQL Bug #79780 
(*) Contribution by Daniël van Eeden (Github dveeden, mysql-connector-python/pull/11#issuecomment-167421503): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_54601387.txt (text/plain), 2.20 KiB.

[29 Dec 2015 9:49] Umesh Shastry
Hello  Daniël,

Thank you for the report and contribution.

Thanks,
Umesh
[21 Mar 2017 15:40] Paul Dubois
Posted by developer:
 
Noted in 2.1.6 changelog.

Loading the world sample database failed if the Connector/Python C
Extension was enabled.