Bug #64543 Error unclear when TCP port is not an integer
Submitted: 5 Mar 2012 9:51 Modified: 1 Dec 2012 0:31
Reporter: Geert Vanderkelen Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / Python Severity:S3 (Non-critical)
Version:0.3.2 OS:Any
Assigned to: Geert Vanderkelen CPU Architecture:Any
Triage: Triaged: D4 (Minor)

[5 Mar 2012 9:51] Geert Vanderkelen
Description:
The error reported when the TCP/IP port is not an integer is unclear. We need to raise a clearer error message.

How to repeat:
>>> import mysql.connector
>>> cnx = mysql.connector.connect(port="33110")
Traceback (most recent call last):
..
mysql.connector.errors.InterfaceError: an integer is required

Suggested fix:
Raise a better error message
[5 Mar 2012 9:52] Geert Vanderkelen
Verified using 0.3.2 and latest from repository.
[1 Dec 2012 0:31] John Russell
Added to changelog for 1.0.8: 

The error message was clarified when a non-integer value was used for
the TCP/IP port connection argument.