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 f8b99fe commit be01154Copy full SHA for be01154
src/connection/manager.ts
@@ -30,7 +30,7 @@ export class SQLJobManager {
30
const config = instance.getConfig();
31
32
const newJob = predefinedJob || (new OldSQLJob({
33
- libraries: [config.currentLibrary, ...config.libraryList],
+ libraries: uniqueStrings([config.currentLibrary, ...config.libraryList]),
34
naming: `system`,
35
"full open": false,
36
"transaction isolation": "none",
@@ -161,4 +161,10 @@ export class SQLJobManager {
161
static getSelfDefault(): SelfValue {
162
return Configuration.get<SelfValue>(`jobSelfDefault`) || `*NONE`;
163
}
164
-}
+}
165
+
166
+const uniqueStrings = (arr: string[]): string[] => {
167
+ return arr.filter((item,
168
+ index) => arr.indexOf(item) === index);
169
170
0 commit comments