Skip to content

Commit 7ffb9b6

Browse files
committed
Fixed a bug in connection class that was creating an invalid connection
string when other params were manually specificed (issue #2032)
1 parent 3f2647d commit 7ffb9b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/libconnector/src/connection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void Connection::generateConnectionString()
146146
value.replace("'","\\'");
147147

148148
if(itr.first==ParamPassword && (value.contains(' ') || value.isEmpty()))
149-
value=QString("'%1'").arg(value);
149+
value = QString("'%1'").arg(value);
150150

151151
if(!value.isEmpty())
152152
{
@@ -155,7 +155,7 @@ void Connection::generateConnectionString()
155155
else if(itr.first != ParamOthers)
156156
connection_str += param_str.arg(itr.first, value);
157157
else
158-
connection_str += value;
158+
connection_str += value + " ";
159159
}
160160
}
161161

0 commit comments

Comments
 (0)