{"record":{"id":"d55908a93e4ee6d2","repo":"OtterMind/Chat2DB","slug":"error-parsing-sql-statement-e-getmessage","errorCode":null,"errorMessage":"Error parsing SQL statement: {e.getMessage()}","messagePattern":"Error parsing SQL statement: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"chat2db-community-server/chat2db-community-plugins/chat2db-community-mysql/src/main/java/ai/chat2db/plugin/mysql/parser/MysqlSqlParser.java","lineNumber":362,"sourceCode":"                        if (Objects.isNull(firstKeyword)) {\n                            firstKeyword = token;\n                        }\n                        lastKeyword = token;\n                    }\n                    tokenStream.consume();\n                }\n            }\n            if (CollectionUtils.isNotEmpty(currentTokens)) {\n                Statement statement = getStatement(currentTokens);\n                sqlBatchHandler.handle(statement);\n                statementCount++;\n                currentTokens.clear();\n                progressListener.onProgress(bytesRead, statementCount);\n            }\n            sqlBatchHandler.flush();\n            return statementCount;\n        } catch (Exception e) {\n            throw new RuntimeException(\"Error parsing SQL statement: \" + e.getMessage(), e);\n        }\n    }\n\n\n    private static String extractDelimiterSymbol(String text) {\n        Matcher matcher = DELIMITER_PATTERN.matcher(text);\n        if (matcher.find()) {\n            return matcher.group(1);\n        }\n        return null;\n    }\n}\n","sourceCodeStart":344,"sourceCodeEnd":375,"githubUrl":"https://github.com/OtterMind/Chat2DB/blob/5ee1e990e73fbcae1969dc554be254fedb3ab888/chat2db-community-server/chat2db-community-plugins/chat2db-community-mysql/src/main/java/ai/chat2db/plugin/mysql/parser/MysqlSqlParser.java#L344-L375","documentation":"Error \"Error parsing SQL statement: {e.getMessage()}\" thrown in OtterMind/Chat2DB.","triggerScenarios":"The MySQL SQL parser failed to parse the statement text.","commonSituations":"See trigger scenarios.","solutions":["Fix the SQL syntax at the position reported in the message and retry.","Simplify or split the statement to isolate the parsing problem."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ee1e990e73fbcae1969dc554be254fedb3ab888","analyzedAt":"2026-08-14T07:05:03.077Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}