Skip to content

Commit ad100d6

Browse files
committed
Fix a new lint warning
1 parent 2c2231d commit ad100d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/lobbinds.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async function plsql_out_inout(connection) {
207207

208208
console.log ("5. plsql_out_inout(): Getting a LOB using a PL/SQL OUT bind and inserting it using a PL/SQL IN OUT LOB bind");
209209

210-
let result = await connection.execute(
210+
const result1 = await connection.execute(
211211
`BEGIN
212212
lobs_out(:idbv, :cobv, :bobv);
213213
END;`,
@@ -218,14 +218,14 @@ async function plsql_out_inout(connection) {
218218
}
219219
);
220220

221-
const clob1 = result.outBinds.cobv;
221+
const clob1 = result1.outBinds.cobv;
222222
if (clob1 === null) {
223223
throw new Error('plsql_out_inout(): NULL clob1 found');
224224
}
225225

226226
// Note binding clob1 as IN OUT here causes it be autoclosed by execute().
227227
// The returned Lob clob2 will be autoclosed because it is streamed to completion.
228-
result = await connection.execute(
228+
const result2 = await connection.execute(
229229
`BEGIN
230230
lob_in_out(:idbv, :ciobv);
231231
END;`,
@@ -239,7 +239,7 @@ async function plsql_out_inout(connection) {
239239

240240
let errorHandled = false;
241241

242-
const clob2 = result.outBinds.ciobv;
242+
const clob2 = result2.outBinds.ciobv;
243243
if (clob2 === null) {
244244
throw new Error('plsql_out_inout(): NULL clob2 found');
245245
}

0 commit comments

Comments
 (0)