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() {
57
57
58
58
// Create HTTP server and listen on port 'httpPort'
59
59
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 ) ;
64
64
65
65
console . log ( "Server running. Try requesting: http://localhost:" + httpPort + "/getimage" ) ;
66
66
} ) ;
@@ -140,13 +140,13 @@ function handleRequest(request, response) {
140
140
}
141
141
142
142
process
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
+ } ) ;
151
151
152
152
init ( ) ;
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ var doquery_object = function (conn, cb) {
86
86
conn . execute (
87
87
"SELECT location_id, city FROM locations WHERE city LIKE 'S%' ORDER BY city" ,
88
88
{ } , // 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
90
90
{ outFormat : oracledb . OBJECT } , // outFormat can be OBJECT or ARRAY. The default is ARRAY
91
91
function ( err , result )
92
92
{
Original file line number Diff line number Diff line change @@ -67,6 +67,6 @@ oracledb.getConnection(
67
67
update = Math . floor ( serverVer / 10000 ) % 100 ;
68
68
port = Math . floor ( serverVer / 100 ) % 100 ;
69
69
portUpdate = serverVer % 100 ;
70
- // console.log("Oracle Database version: " + serverVer);
70
+ // console.log("Oracle Database version: " + serverVer);
71
71
console . log ( "Oracle Database text format: " + major + "." + minor + "." + update + "." + port + "." + portUpdate ) ;
72
72
} ) ;
You can’t perform that action at this time.
0 commit comments