From 8ee076e58d6641854ab9e2c444ec0b2f0e778422 Mon Sep 17 00:00:00 2001 From: worksofliam Date: Thu, 19 Dec 2024 12:49:30 -0500 Subject: [PATCH] Set default error type to error Signed-off-by: worksofliam --- src/connection/syntaxChecker/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection/syntaxChecker/index.ts b/src/connection/syntaxChecker/index.ts index ece0e5fa..04c77123 100644 --- a/src/connection/syntaxChecker/index.ts +++ b/src/connection/syntaxChecker/index.ts @@ -146,7 +146,7 @@ function niceError(sqlError: SqlCheckError): SqlSyntaxError { text = text.replace(`&${index+1}`, token); }); - let errorType: SqlErrorType = `none`; + let errorType: SqlErrorType = `error`; const sqlState = sqlError.ERRORSQLSTATE.substring(0, 2); if (sqlState in ERROR_STATE_MAP) { errorType = ERROR_STATE_MAP[sqlState];