Skip to content

Commit

Permalink
Update SQL statement checker to use dynamic message file parameters a…
Browse files Browse the repository at this point in the history
…nd increment version number

Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Dec 20, 2024
1 parent 2076e36 commit 811f185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/connection/syntaxChecker/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function getValidatorSource(schema: string, version: number) {
select message_text
into messageText
from table(qsys2.message_file_data('QSYS', 'QSQLMSG'))
from table(qsys2.message_file_data(messageFileLibrary, messageFileName))
where message_id = errorSQLMessageID;
pipe (
Expand Down
2 changes: 1 addition & 1 deletion src/connection/syntaxChecker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface SqlSyntaxError {
export class SQLStatementChecker implements IBMiComponent {
static ID = "SQLStatementChecker";
private readonly functionName = VALIDATOR_NAME;
private readonly currentVersion = 2;
private readonly currentVersion = 3;

private installedVersion = 1;
private library = "";
Expand Down

0 comments on commit 811f185

Please sign in to comment.