@@ -3,7 +3,7 @@ import * as yaml from 'js-yaml';
33import * as tmp from 'tmp' ;
44import * as vscode from "vscode" ;
55import { decodeSourceArchiveUri , zipArchiveScheme } from "./archive-filesystem-provider" ;
6- import { EntityValue , getResultSetSchema , LineColumnLocation , UrlValue } from "./bqrs-cli-types" ;
6+ import { EntityValue , getResultSetSchema , LineColumnLocation , UrlValue , ColumnKindCode } from "./bqrs-cli-types" ;
77import { CodeQLCliServer } from "./cli" ;
88import { DatabaseItem , DatabaseManager } from "./databases" ;
99import * as helpers from './helpers' ;
@@ -156,9 +156,9 @@ async function getLinksFromResults(results: QueryWithResults, cli: CodeQLCliServ
156156 const info = await cli . bqrsInfo ( bqrsPath ) ;
157157 const selectInfo = getResultSetSchema ( SELECT_QUERY_NAME , info ) ;
158158 if ( selectInfo && selectInfo . columns . length == 3
159- && selectInfo . columns [ 0 ] . kind == "e"
160- && selectInfo . columns [ 1 ] . kind == "e"
161- && selectInfo . columns [ 2 ] . kind == "s" ) {
159+ && selectInfo . columns [ 0 ] . kind == ColumnKindCode . ENTITY
160+ && selectInfo . columns [ 1 ] . kind == ColumnKindCode . ENTITY
161+ && selectInfo . columns [ 2 ] . kind == ColumnKindCode . STRING ) {
162162 // TODO: Page this
163163 const allTuples = await cli . bqrsDecode ( bqrsPath , SELECT_QUERY_NAME ) ;
164164 for ( const tuple of allTuples . tuples ) {
0 commit comments