|
1 |
| -/* Copyright (c) 2015, 2023, Oracle and/or its affiliates. */ |
| 1 | +/* Copyright (c) 2015, 2024, Oracle and/or its affiliates. */ |
2 | 2 |
|
3 | 3 | /******************************************************************************
|
4 | 4 | *
|
@@ -51,16 +51,16 @@ const dbConfig = require('./dbconfig.js');
|
51 | 51 | // Optionally run in node-oracledb Thick mode
|
52 | 52 | if (process.env.NODE_ORACLEDB_DRIVER_MODE === 'thick') {
|
53 | 53 | // Thick mode requires Oracle Client or Oracle Instant Client libraries. On
|
54 |
| - // Windows and macOS Intel you can specify the directory containing the |
| 54 | + // Windows and macOS you can specify the directory containing the |
55 | 55 | // libraries at runtime or before Node.js starts. On other platforms (where
|
56 | 56 | // Oracle libraries are available) the system library search path must always
|
57 | 57 | // include the Oracle library path before Node.js starts. If the search path
|
58 | 58 | // is not correct, you will get a DPI-1047 error. See the node-oracledb
|
59 | 59 | // installation documentation.
|
60 | 60 | let clientOpts = {};
|
61 |
| - // On Windows and macOS Intel platforms, set the environment |
62 |
| - // variable NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path |
63 |
| - if (process.platform === 'win32' || (process.platform === 'darwin' && process.arch === 'x64')) { |
| 61 | + // On Windows and macOS platforms, set the environment variable |
| 62 | + // NODE_ORACLEDB_CLIENT_LIB_DIR to the Oracle Client library path |
| 63 | + if (process.platform === 'win32' || process.platform === 'darwin') { |
64 | 64 | clientOpts = { libDir: process.env.NODE_ORACLEDB_CLIENT_LIB_DIR };
|
65 | 65 | }
|
66 | 66 | oracledb.initOracleClient(clientOpts); // enable node-oracledb Thick mode
|
|
0 commit comments