Created
August 26, 2014 21:24
-
-
Save jonasschneider/cb817243f2cc2806e21b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Okay, this is getting ugly. For some reeeally unknown reason, this segfaults: | |
$ run_fis pry -rpg -e 'PG.connect({:host=>"127.0.0.1"})' | |
while this doesn't: | |
$ run_fis pry -rpg -e 'puts PG.connect({dbname: "fis"})' | |
I suspect it has something to do with authentication methods; while the first one uses TCP sockets and therefore can't use Linux SO_GETPEERCRED auth, | |
the other one can. Oh well. | |
--- a/vendor/bundle/ruby/2.1.0/gems/sequel-4.9.0/lib/sequel/adapters/postgres.rb 2014-08-26 20:31:38.000000000 +0000 | |
+++ b/vendor/bundle/ruby/2.1.0/gems/sequel-4.9.0/lib/sequel/adapters/postgres.rb 2014-08-26 20:31:53.000000000 +0000 | |
@@ -205,13 +205,9 @@ | |
opts = server_opts(server) | |
conn = if SEQUEL_POSTGRES_USES_PG | |
connection_params = { | |
- :host => opts[:host], | |
- :port => opts[:port] || 5432, | |
:dbname => opts[:database], | |
:user => opts[:user], | |
:password => opts[:password], | |
- :connect_timeout => opts[:connect_timeout] || 20, | |
- :sslmode => opts[:sslmode] | |
}.delete_if { |key, value| blank_object?(value) } | |
Adapter.connect(connection_params) | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment