aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/dbshell/client/postgres.rb2
-rw-r--r--spec/dbshell/client/postgres_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/dbshell/client/postgres.rb b/lib/dbshell/client/postgres.rb
index 0e33843..78b82d7 100644
--- a/lib/dbshell/client/postgres.rb
+++ b/lib/dbshell/client/postgres.rb
@@ -19,7 +19,7 @@ module DBShell
args.push('-U', user) if user
args.push('-h', host) if host
- args.push('-p', port) if port
+ args.push('-p', port.to_s) if port
args.push(db_name)
end
end
diff --git a/spec/dbshell/client/postgres_spec.rb b/spec/dbshell/client/postgres_spec.rb
index c9cb2c7..85223a7 100644
--- a/spec/dbshell/client/postgres_spec.rb
+++ b/spec/dbshell/client/postgres_spec.rb
@@ -18,7 +18,7 @@ describe DBShell::Client::Postgres do
'-h',
'mailmarehost',
'-p',
- 6027,
+ '6027',
'dbname'
])
end