-
Notifications
You must be signed in to change notification settings - Fork 373
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
add Language option on connect #930
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #930 +/- ##
=======================================
Coverage 80.51% 80.51%
=======================================
Files 25 25
Lines 7753 7753
=======================================
Hits 6242 6242
Misses 1511 1511
Continue to review full report at Codecov.
|
Thanks for this PR @gdegoulet. Please be aware of how the language functionality works: There are three layers of messages that may be returned when using the PHP drivers. One layer comes from the PHP driver, and because the PHP driver has not been localised, those messages will always be in English. Another layer comes from the ODBC driver (and driver manager). To get messages from the ODBC driver in other languages, you need to use a localised version of the driver in the language you prefer. These localised versions are available to download from the Microsoft Download Center. The third layer is messages that come from SQL Server itself. When the However, this is not much different from the current user experience with the ODBC driver, since you would still get messages in different languages if you pass a different language as a connection attribute than a localised version of the ODBC driver uses. The difference is that with your PR, messages from SQL Server can be set directly from a PHP script, but messages from the PHP driver would still be in English. We want to gauge how useful adding a |
Hello David : for an very old website (LAMP) , we used php 5.6 with freetds driver. you said "When the Language option is passed to the ODBC driver, it affects only the messages received from SQL Server" : not only, it seems to change the database behaviours on date string, number format, ... ? After some search, we discovered that there is an language option (and some other) on the connect function from sqlsrv driver but not in php extension ? I'm not mssql server expert : it's maybe not the good way to solve our problems ? look forward to reading your tips. Thanks |
Ok we will merge this PR shortly, but not before the next preview release 5.6.1, which fixes a problem with the PECL packaging. That will be in the next few days most likely. Please stay tuned. |
No description provided.