File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const octokit = new Octokit();
14
14
15
15
// During development, you can set the SERVER_VERSION in .vscode/launch.json
16
16
// Otherwise, fall back to the working version
17
- const SERVER_VERSION = process . env [ `SERVER_VERSION` ] || `v1.0.0-alpha-32 ` ;
17
+ const SERVER_VERSION = process . env [ `SERVER_VERSION` ] || `v1.0.0-alpha-33 ` ;
18
18
19
19
const ExecutablePathDir = `$HOME/.vscode/` ;
20
20
@@ -185,4 +185,4 @@ function downloadFile(url, outputPath) {
185
185
return fetch ( url )
186
186
. then ( x => x . arrayBuffer ( ) )
187
187
. then ( x => writeFile ( outputPath , Buffer . from ( x ) ) ) ;
188
- }
188
+ }
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export interface SetConfigResult extends ServerResponse {
41
41
export interface QueryResult < T > extends ServerResponse {
42
42
metadata : QueryMetaData ,
43
43
is_done : boolean ;
44
+ has_results : boolean ;
44
45
data : T [ ] ;
45
46
}
46
47
Original file line number Diff line number Diff line change @@ -113,6 +113,19 @@ export const JobsSuite: TestSuite = {
113
113
newJob . close ( ) ;
114
114
} } ,
115
115
116
+ { name : `SQL with no result set` , test : async ( ) => {
117
+ assert . strictEqual ( ServerComponent . isInstalled ( ) , true ) ;
118
+
119
+ let newJob = new SQLJob ( ) ;
120
+ await newJob . connect ( ) ;
121
+
122
+ let result = await newJob . query ( `create or replace table qtemp.tt as (select * from sysibm.sysdummy1) with data on replace delete rows` ) . run ( ) ;
123
+ assert . equal ( result . success , true ) ;
124
+ assert . equal ( result . has_results , false ) ;
125
+ assert . equal ( result . data , undefined ) ;
126
+ newJob . close ( ) ;
127
+ } } ,
128
+
116
129
{ name : `CL Command (success)` , test : async ( ) => {
117
130
assert . strictEqual ( ServerComponent . isInstalled ( ) , true ) ;
118
131
You can’t perform that action at this time.
0 commit comments