-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow socket usage in DATABASE_URL #71
Conversation
@@ -155,6 +155,12 @@ def initialize_type_map(m) | |||
end | |||
|
|||
def initialize(connection, logger, connection_options, config) | |||
config = config.dup | |||
|
|||
# Trilogy ignores `socket` if `host is set. We want the opposite to allow |
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.
Missing a closing back-tick after "host". Should be:
# Trilogy ignores `socket` if `host` is set. We want the opposite to allow
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.
Anyway, I shouldn't worry -- the same typo is also in the original!
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 updated commit to fix the typo. Thanks for pointing this out!
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.
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 kindly for bringing this patch to ARTA.
Contrary to mysql2, trilogy will ignore the socket config if host is set.
This makes it impossible to configure a UNIX domain socket connection via DATABASE_URL, as the URL must include a host.
This is a backport of rails/rails#50349