Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.

Commit 7ab44b5

Browse files
committed
🐛 Fixed issue with multiple instances of oledb using the same connection string.
1 parent 592c532 commit 7ab44b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
const edge = require('edge');
22
const data = edge.func(__dirname + '/Data.cs');
33

4-
let connectionString;
5-
64
module.exports = function(constring) {
75
if (constring == null || constring.trim() === '')
86
throw 'constring must not be null or empty';
97

10-
connectionString = constring;
8+
let connectionString = constring;
119

1210
function executePromise(command, type) {
1311
return new Promise(function(resolve, reject) {

0 commit comments

Comments
 (0)