Skip to content
Snippets Groups Projects
Commit 4ce2ed7f authored by João Victor Risso's avatar João Victor Risso
Browse files

Fix port conversion to integer in monetdb_adapter

parent 61074a38
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ module ActiveRecord ...@@ -18,7 +18,7 @@ module ActiveRecord
client = MonetDB.new client = MonetDB.new
config[:host] = config.delete(:hostname) || "127.0.0.1" config[:host] = config.delete(:hostname) || "127.0.0.1"
config[:port] = config.delete(:port) || "50000" config[:port] = config.delete(:port).to_i || 50000
config[:user] = config.delete(:username) || "monetdb" config[:user] = config.delete(:username) || "monetdb"
config[:passwd] = config.delete(:password) if config[:password] config[:passwd] = config.delete(:password) if config[:password]
config[:db_name] = config.delete(:database) if config[:database] config[:db_name] = config.delete(:database) if config[:database]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment