-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix GH-12251: Add semicolon to end of odbc dsn #12295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix GH-12251: Add semicolon to end of odbc dsn #12295
Conversation
@NattyNarwhal |
@Girgias |
can it be unit tested? |
@staabm |
If the password was an empty string, it might not work properly. I'll fix it. |
Dumping thoughts here, apologies if a bit scattershot, I just woke up:
FWIW this patch does work for me with the IBM i Db2 and SQL Server 17 (which I ran against test suite) drivers that I can easily test with. |
@NattyNarwhal
gdb
gdb
The root cause of the issue may indeed be caused by FreeTDS, but the two points I mentioned need to be taken into consideration in php. |
I specified |
Therefore, this PR should be closed for now. This fix is not suitable. |
I do think this PR is still acceptable as a workaround (if it doesn't cause issues with other drivers - I don't know how some would react to a trailing semicolon, but it seems OK so far?). |
I'm especially concerned that Github Actions is failing to connect. Since the test is not |
FreeTDS fixed it. |
closes #12251
It seems that if the
$dsn
ends with a quote, it causes a connection error, so I added a semicolon at the end.Any further modifications should be made to master, so I won't cover them in this PR, but I have some doubts about the specification where the second and third arguments are ignored under certain conditions.