@@ -67,14 +67,14 @@ async function run() {
67
67
try {
68
68
connection = await oracledb . getConnection ( dbConfig ) ;
69
69
70
- console . log ( "Oracle Database version : " , connection . oracleServerVersionString ) ;
71
- // console.log("Oracle Database version : ", connection.oracleServerVersion); // numeric version format
70
+ console . log ( "Oracle Database version :" , connection . oracleServerVersionString ) ;
71
+ // console.log("Oracle Database version :", connection.oracleServerVersion); // numeric version format
72
72
73
73
const result = await connection . execute (
74
74
`SELECT UNIQUE CLIENT_DRIVER
75
75
FROM V$SESSION_CONNECT_INFO
76
76
WHERE SID = SYS_CONTEXT('USERENV', 'SID')` ) ;
77
- console . log ( "CLIENT_DRIVER : " + result . rows [ 0 ] [ 0 ] + "'" ) ;
77
+ console . log ( "CLIENT_DRIVER :" , result . rows [ 0 ] [ 0 ] . replace ( ': ' , '' ) ) ;
78
78
79
79
} catch ( err ) {
80
80
console . error ( err ) ;
@@ -92,13 +92,13 @@ async function run() {
92
92
console . log ( "Run at : " + new Date ( ) ) ;
93
93
console . log ( "Node.js version : " + process . version + " (" + process . platform , process . arch + ")" ) ;
94
94
95
- console . log ( "Node-oracledb version : " , oracledb . versionString ) ; // version (including the suffix)
96
- // console.log("Node-oracledb version : ", oracledb.version); // numeric version format is useful for comparisons
97
- // console.log("Node-oracledb version suffix : ", oracledb.versionSuffix); // e.g. "-beta.1", or empty for production releases
95
+ console . log ( "Node-oracledb version :" , oracledb . versionString ) ; // version (including the suffix)
96
+ // console.log("Node-oracledb version :", oracledb.version); // numeric version format is useful for comparisons
97
+ // console.log("Node-oracledb version suffix :", oracledb.versionSuffix); // e.g. "-beta.1", or empty for production releases
98
98
99
99
if ( process . env . NODE_ORACLEDB_DRIVER_MODE === 'thick' ) {
100
- console . log ( "Oracle Client library version : " , oracledb . oracleClientVersionString ) ;
101
- // console.log("Oracle Client library version : ", oracledb.oracleClientVersion); // numeric version format
100
+ console . log ( "Oracle Client library version :" , oracledb . oracleClientVersionString ) ;
101
+ // console.log("Oracle Client library version :", oracledb.oracleClientVersion); // numeric version format
102
102
}
103
103
104
104
run ( ) ;
0 commit comments