File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/connection/syntaxChecker Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class SQLStatementChecker implements IBMiComponent {
47
47
48
48
private getLibrary ( connection : IBMi ) {
49
49
if ( ! this . library ) {
50
- this . library = connection ?. config ?. tempLibrary . toUpperCase ( ) || `ILEDITOR` ;
50
+ this . library = connection ?. getConfig ( ) ?. tempLibrary . toUpperCase ( ) || `ILEDITOR` ;
51
51
}
52
52
53
53
return this . library ;
@@ -79,7 +79,7 @@ export class SQLStatementChecker implements IBMiComponent {
79
79
return - 1 ;
80
80
}
81
81
82
- async getRemoteState ( connection : IBMi ) {
82
+ async getRemoteState ( connection : IBMi ) : Promise < ComponentState > {
83
83
const lib = this . getLibrary ( connection ) ;
84
84
85
85
const wrapperVersion = await SQLStatementChecker . getVersionOf ( connection , lib , WRAPPER_NAME ) ;
@@ -98,7 +98,7 @@ export class SQLStatementChecker implements IBMiComponent {
98
98
update ( connection : IBMi ) : ComponentState | Promise < ComponentState > {
99
99
return connection . withTempDirectory ( async tempDir => {
100
100
const tempSourcePath = posix . join ( tempDir , `sqlchecker.sql` ) ;
101
- await connection . content . writeStreamfileRaw ( tempSourcePath , Buffer . from ( this . getSource ( connection ) , "utf-8" ) ) ;
101
+ await connection . getConfig ( ) . writeStreamfileRaw ( tempSourcePath , Buffer . from ( this . getSource ( connection ) , "utf-8" ) ) ;
102
102
const result = await connection . runCommand ( {
103
103
command : `RUNSQLSTM SRCSTMF('${ tempSourcePath } ') COMMIT(*NONE) NAMING(*SYS)` ,
104
104
noLibList : true
You can’t perform that action at this time.
0 commit comments