ARMySQLConnection ignores 'port' key
-
fjolnir (at gmail)
- Tag changed from connection, ignored, key, port to connection, database, ignored, key, port
Thanks a lot for reporting, I'll fix this asap
-
fjolnir (at gmail)
- Tag changed from connection, database, ignored, key, port to connection ignored, database, key, port
Hm, I took a look at the code and I don't see why this would happen, Here's the line that creates the mysql connection, are you sure you're using 'port' as the key for a NSNumber containing the desired port number when executingopenConnectionWithInfo:error: ? If so, let me know and I'll try to dig in deeper (although if that's the case it looks like a libmysqlclient bug which is unlikely)
res = mysql_real_connect(mySQLConnection, [host UTF8String], [username UTF8String], [password UTF8String], [database UTF8String], port, NULL, 0); -
jabo
You are correct, I did some further testing and found that mysql_real_connect will not use the port setting value if your host key equals 'localhost' it will use the default socket instead.
This does not affect your code at all, just a gotcha for others, probably one I should have known about.
Thanks for taking a look.
-
Fjölnir Ásgeirsson
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.