We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9cd85 commit 3e70c45Copy full SHA for 3e70c45
test/unit/utils-tests.js
@@ -143,4 +143,17 @@ test('libpq connection string building', function() {
143
}))
144
})
145
146
+ test('password contains < and/or > characters', function () {
147
+ var sourceConfig = {
148
+ user:'brian',
149
+ password: 'hello<ther>e',
150
+ port: 5432,
151
+ host: 'localhost',
152
+ database: 'postgres'
153
+ }
154
+ var connectionString = 'pg://' + sourceConfig.user + ':' + sourceConfig.password + '@' + sourceConfig.host + ':' + sourceConfig.port + '/' + sourceConfig.database;
155
+ var config = utils.parseConnectionString(connectionString);
156
+ assert.same(config, sourceConfig);
157
+ });
158
+
159
0 commit comments