File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export const tmpDirDisposal = {
3030 }
3131} ;
3232
33- let queryCounter = 0 ;
3433
3534export class UserCancellationException extends Error { }
3635
@@ -43,6 +42,8 @@ export class UserCancellationException extends Error { }
4342export class QueryInfo {
4443 compiledQueryPath : string ;
4544 resultsInfo : ResultsInfo ;
45+ private static nextQueryId = 0 ;
46+
4647 /**
4748 * Map from result set name to SortedResultSetInfo.
4849 */
@@ -56,7 +57,7 @@ export class QueryInfo {
5657 public quickEvalPosition ?: messages . Position ,
5758 public metadata ?: cli . QueryMetadata ,
5859 ) {
59- this . queryId = queryCounter ++ ;
60+ this . queryId = QueryInfo . nextQueryId ++ ;
6061 this . compiledQueryPath = path . join ( tmpDir . name , `compiledQuery${ this . queryId } .qlo` ) ;
6162 this . resultsInfo = {
6263 resultsPath : path . join ( tmpDir . name , `results${ this . queryId } .bqrs` ) ,
You can’t perform that action at this time.
0 commit comments