If, by 'syntax error', you mean SQL syntax error, it's a different problem. Please add more info (complete statement, stack trace, TRACE level log, etc.) or share a small demo project like [these](https://github.com/harawata/mybatis-issues) that reproduces the error.
– aveFeb 08 '23 at 06:31