当前位置:网站首页>SQLite SQL exception near "with": syntax error

SQLite SQL exception near "with": syntax error

2022-07-07 18:23:00 Jiang Tongcheng

background

Use logstash take sqlite db The data in the file is synchronized to elasticsearch In the middle ( For the implementation scheme, please refer to another blog article :logstash from sqlite Get content from ). The business data retrieval logic is complex , Need to use with recursive keyword .

sql Statement is local navicat Has been debugged , Migrate to logstash In the configuration file , When executing synchronization tasks sql Statement exception :

logstash.inputs.jdbc ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::JavaSql::SQLException: near “with”: syntax error>}

Solution

adopt Search for , The discovery could be sqlite Version of the problem . Tried multiple jar Package number , Solved the problem .

Currently used by bloggers jar Version is :sqlite-jdbc-3.8.11.2.jar. Download at :https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc/3.8.11.2

原网站

版权声明
本文为[Jiang Tongcheng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071615177901.html