[ODBC-310] Connector would connect to the socket if SERVER is specified as localhost on Linux Created: 2021-04-15  Updated: 2021-04-15  Resolved: 2021-04-15

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: General
Affects Version/s: None
Fix Version/s: 3.1.12

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None


 Description   

On linux, if SERVER is set to 'localhost'(and not to 127.0.0.1 or anything else) C/C will default to socket connection even if the port is set, which is confusing and far not always the socket is where C/C has default value for it.
As a matter of fact, it maybe makes sense to force tcp/ip connection if port is specified, and socket is not. Looking at current documentation, this can be a better solution. TCPIP is said to be Windows only, and if socket is not specified, that's said it has to be tcp/ip connection



 Comments   
Comment by Lawrin Novitsky [ 2021-04-15 ]

Commit 20548be

Generated at Thu Feb 08 03:27:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.