Skip to content
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

Change language at login #929

Closed
vrobert78 opened this issue Feb 13, 2019 · 3 comments
Closed

Change language at login #929

vrobert78 opened this issue Feb 13, 2019 · 3 comments

Comments

@vrobert78
Copy link

Hi,

as for the issue #14, we need to change the language during login.

The official ODBC documentation mentions the language attribute: https://docs.microsoft.com/en-us/sql/relational-databases/native-client/applications/using-connection-string-keywords-with-sql-server-native-client?view=sql-server-2017

But it is not usable in this driver: https://docs.microsoft.com/en-us/sql/connect/php/connection-options?view=sql-server-2017

In the past with freetds, the option existed. (http://www.freetds.org/userguide/locales.htm)
In /etc/locales.conf:

[en_US]
	date format = %b %e %Y %I:%M:%S:%z%p
	language = us_english
	charset = iso_1

As a workaround, we use a sqlsrv_query($this->bdd, 'SET LANGUAGE us_english'); .

Is there any chance that you add the language option ?

Regards,

Vincent

@gdegoulet
Copy link
Contributor

it could maybe help you ? PR : #930

@david-puglielli
Copy link
Contributor

@vrobert78 @gdegoulet Thank yo for your contributions. We will review the PR you provided after the next RTW, which should be in the next few days.

@david-puglielli
Copy link
Contributor

PR #930 merged. Closing issue. Please reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants