File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ function init() {
5757
5858 // Create HTTP server and listen on port 'httpPort'
5959 http
60- . createServer ( function ( request , response ) {
61- handleRequest ( request , response ) ;
62- } )
63- . listen ( httpPort ) ;
60+ . createServer ( function ( request , response ) {
61+ handleRequest ( request , response ) ;
62+ } )
63+ . listen ( httpPort ) ;
6464
6565 console . log ( "Server running. Try requesting: http://localhost:" + httpPort + "/getimage" ) ;
6666 } ) ;
@@ -140,13 +140,13 @@ function handleRequest(request, response) {
140140}
141141
142142process
143- . on ( 'SIGTERM' , function ( ) {
144- console . log ( "\nTerminating" ) ;
145- process . exit ( 0 ) ;
146- } )
147- . on ( 'SIGINT' , function ( ) {
148- console . log ( "\nTerminating" ) ;
149- process . exit ( 0 ) ;
150- } ) ;
143+ . on ( 'SIGTERM' , function ( ) {
144+ console . log ( "\nTerminating" ) ;
145+ process . exit ( 0 ) ;
146+ } )
147+ . on ( 'SIGINT' , function ( ) {
148+ console . log ( "\nTerminating" ) ;
149+ process . exit ( 0 ) ;
150+ } ) ;
151151
152152init ( ) ;
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ var doquery_object = function (conn, cb) {
8686 conn . execute (
8787 "SELECT location_id, city FROM locations WHERE city LIKE 'S%' ORDER BY city" ,
8888 { } , // A bind variable parameter is needed to disambiguate the following options parameter
89- // otherwise you will get Error: ORA-01036: illegal variable name/number
89+ // otherwise you will get Error: ORA-01036: illegal variable name/number
9090 { outFormat : oracledb . OBJECT } , // outFormat can be OBJECT or ARRAY. The default is ARRAY
9191 function ( err , result )
9292 {
Original file line number Diff line number Diff line change @@ -67,6 +67,6 @@ oracledb.getConnection(
6767 update = Math . floor ( serverVer / 10000 ) % 100 ;
6868 port = Math . floor ( serverVer / 100 ) % 100 ;
6969 portUpdate = serverVer % 100 ;
70- // console.log("Oracle Database version: " + serverVer);
70+ // console.log("Oracle Database version: " + serverVer);
7171 console . log ( "Oracle Database text format: " + major + "." + minor + "." + update + "." + port + "." + portUpdate ) ;
7272 } ) ;
You can’t perform that action at this time.
0 commit comments