当前位置:网站首页>sqlite sql 异常 near “with“: syntax error
sqlite sql 异常 near “with“: syntax error
2022-07-07 16:15:00 【蒋桐城】
背景
使用logstash将sqlite db文件中的数据同步到elasticsearch中去(实现方案可参考博主另一篇文章:logstash从sqlite中获取内容)。业务取数逻辑比较复杂,需要用到with recursive
关键字。
sql语句在本地navicat中已经调试通过,迁移到logstash的配置文件中,执行同步任务时报sql语句异常:
logstash.inputs.jdbc ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::JavaSql::SQLException: near “with”: syntax error>}
解决方案
通过搜索,发现可能是sqlite版本问题。尝试了多个jar包号,解决了问题。
目前博主使用的jar版本为:sqlite-jdbc-3.8.11.2.jar。下载地址为:https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc/3.8.11.2
边栏推荐
- mui侧边导航锚点定位js特效
- 现在网上期货开户安全吗?国内有多少家正规的期货公司?
- 线上比赛相关规则补充说明
- AI defeated mankind and designed a better economic mechanism
- Afghan interim government security forces launched military operations against a hideout of the extremist organization "Islamic state"
- 【C语言】字符串函数
- Chapter 2 building CRM project development environment (building development environment)
- Debian10 compile and install MySQL
- 仿今日头条APP顶部点击可居中导航
- Yearning-SQL审核平台
猜你喜欢
[PaddleSeg源码阅读] PaddleSeg Validation 中添加 Boundary IoU的计算(1)——val.py文件细节提示
How to clean when win11 C disk is full? Win11 method of cleaning C disk
[answer] if the app is in the foreground, the activity will not be recycled?
List selection JS effect with animation
不能忽略的现货白银短线操作小技巧
Easy to understand [linear regression of machine learning]
回归测试的分类
[principle and technology of network attack and Defense] Chapter 1: Introduction
Robot engineering lifelong learning and work plan-2022-
讨论| 坦白局,工业 AR 应用为什么难落地?
随机推荐
机器人工程终身学习和工作计划-2022-
【蓝桥杯集训100题】scratch从小到大排序 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第17题
现在网上期货开户安全吗?国内有多少家正规的期货公司?
Automated testing: a practical skill that everyone wants to know about robot framework
[principles and technologies of network attack and Defense] Chapter 5: denial of service attack
Management by objectives [14 of management]
debian10编译安装mysql
Backup Alibaba cloud instance OSS browser
简单几步教你如何看k线图图解
Supplementary instructions to relevant rules of online competition
财富证券证券怎么开户?通过链接办理股票开户安全吗
Robot engineering lifelong learning and work plan-2022-
[4500 word summary] a complete set of skills that a software testing engineer needs to master
<代码随想录二刷>链表
自动化测试:Robot FrameWork框架大家都想知道的实用技巧
元宇宙带来的创意性改变
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
Use onedns to perfectly solve the optimization problem of office network
js拉下帷幕js特效显示层
直播软件搭建,canvas文字加粗