reflect jsonb build in route
This commit is contained in:
		
							parent
							
								
									7cef794368
								
							
						
					
					
						commit
						8c8e8b22e4
					
				
							
								
								
									
										5
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								index.js
									
									
									
									
									
								
							| @ -91,6 +91,7 @@ server.get('/get_pool', bodyParser.json(), function (req,res) { | |||||||
|     //------------------------------------------set base SQL------------------------------------
 |     //------------------------------------------set base SQL------------------------------------
 | ||||||
|     var w =  |     var w =  | ||||||
|     ` |     ` | ||||||
|  |     WITH rows AS ( | ||||||
|     SELECT |     SELECT | ||||||
|         ---------customer info----------------- |         ---------customer info----------------- | ||||||
|         bill_cust_descr |         bill_cust_descr | ||||||
| @ -164,7 +165,9 @@ server.get('/get_pool', bodyParser.json(), function (req,res) { | |||||||
|         ,request_month |         ,request_month | ||||||
|         ,promo |         ,promo | ||||||
|         ,version |         ,version | ||||||
|         ,iter`;
 |         ,iter | ||||||
|  |     ) | ||||||
|  |     SELECT row_to_json(rows) x FROM rows`;
 | ||||||
|     //-----------------replace default quota_rep----------------------------------------------------
 |     //-----------------replace default quota_rep----------------------------------------------------
 | ||||||
|     console.log(w); |     console.log(w); | ||||||
|     Postgres.FirstRow(w,args,res) |     Postgres.FirstRow(w,args,res) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user