-
Notifications
You must be signed in to change notification settings - Fork 7.9k
PDO_Firebird: Add connection level SESSION_TIMEZONE attribute #15480
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks generally sensible to me.
ext/pdo_firebird/tests/testdb.inc
Outdated
@@ -14,15 +14,25 @@ define('PDO_FIREBIRD_TEST_DSN', getenv('PDO_FIREBIRD_TEST_DSN') ?: ''); | |||
|
|||
if(!PDO_FIREBIRD_TEST_DSN) | |||
{ | |||
die('Error: PDO_FIREBIRD_TEST_DSN must be set'); | |||
die('Error: PDO_FIREBIRD_TEST_DSN must be set'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd stick with 4 spaces as indentation in PHP files, but I don't think we have any CS in this regard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
I can't make an independent PR to clean up the code when there is an active PR. Now I know where I made a mistake. But it is not clear how to reassign a separate branch for an existing PR. |
Ah, I see. I suggest to just close this PR, and open up a new one. |
This feature allows you to set the session time zone when connecting to the database. An alternative is to set the time zone after the connection is established using the query: