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 810e6a4 commit 5619c22Copy full SHA for 5619c22
lib/connection_config.js
@@ -145,7 +145,7 @@ class ConnectionConfig {
145
// "+" is a url encoded char for space so it
146
// gets translated to space when giving a
147
// connection string..
148
- this.timezone = `+${this.timezone.substr(1)}`;
+ this.timezone = `+${this.timezone.slice(1)}`;
149
}
150
if (this.ssl) {
151
if (typeof this.ssl !== 'object') {
@@ -253,7 +253,7 @@ class ConnectionConfig {
253
const options = {
254
host: parsedUrl.hostname,
255
port: parsedUrl.port,
256
- database: parsedUrl.pathname.substr(1),
+ database: parsedUrl.pathname.slice(1),
257
user: parsedUrl.username,
258
password: parsedUrl.password
259
};
0 commit comments