File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1107,13 +1107,12 @@ def _psql(
1107
1107
else :
1108
1108
raise Exception ("Input data must be None or bytes." )
1109
1109
1110
- dbname = dbname or default_dbname ()
1111
-
1112
1110
psql_params = [
1113
1111
self ._get_bin_path ("psql" ),
1114
1112
"-p" , str (self .port ),
1115
1113
"-h" , self .host ,
1116
1114
"-U" , username or self .os_ops .username ,
1115
+ "-d" , dbname or default_dbname (),
1117
1116
"-X" , # no .psqlrc
1118
1117
"-A" , # unaligned output
1119
1118
"-t" , # print rows only
@@ -1135,9 +1134,6 @@ def _psql(
1135
1134
else :
1136
1135
raise QueryException ('Query or filename must be provided' )
1137
1136
1138
- # should be the last one
1139
- psql_params .append (dbname )
1140
-
1141
1137
return self .os_ops .exec_command (
1142
1138
psql_params ,
1143
1139
verbose = True ,
You can’t perform that action at this time.
0 commit comments