Skip to content

Commit 02e9f6f

Browse files
committed
Fix structure dump tests
1 parent b800805 commit 02e9f6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/active_record/tasks/sqlserver_database_tasks.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ def purge
4949
end
5050

5151
def structure_dump(filename, extra_flags)
52+
server_arg = "-S #{Shellwords.escape(configuration['host'])}"
53+
server_arg += ":#{Shellwords.escape(configuration['port'])}" if configuration['port']
5254
command = [
5355
"defncopy-ttds",
54-
"-S #{Shellwords.escape(configuration['host'])}:#{Shellwords.escape(configuration['port'])}",
56+
host_parameter,
5557
"-D #{Shellwords.escape(configuration['database'])}",
5658
"-U #{Shellwords.escape(configuration['username'])}",
5759
"-P #{Shellwords.escape(configuration['password'])}",

0 commit comments

Comments
 (0)