草庐IT

query-parser

全部标签

Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syn

踩坑日记。数据库提示错误的查询语句。但我看了和数据库表中的字段名是一模一样的,经过我的反复排查,后知后觉的发现原来desc是数据库的关键字呀。desc是mysql中的降序关键字,只要把desc换一个名字就好了。最开始反复提示near“descxxxx”,提示在desc附近,没往这边想。然后其他的就好好对照看是不是自己写错了。看网上还有一种说法就是你在查询的时候可能涉及到一个xml的或者其他标签同时有多条查询语句。那么你就在你的数据库地址配置时多加一条语句&allowMultiQueries=true:url:jdbc:mysql://localhost:3306/testgenerate?se

Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syn

踩坑日记。数据库提示错误的查询语句。但我看了和数据库表中的字段名是一模一样的,经过我的反复排查,后知后觉的发现原来desc是数据库的关键字呀。desc是mysql中的降序关键字,只要把desc换一个名字就好了。最开始反复提示near“descxxxx”,提示在desc附近,没往这边想。然后其他的就好好对照看是不是自己写错了。看网上还有一种说法就是你在查询的时候可能涉及到一个xml的或者其他标签同时有多条查询语句。那么你就在你的数据库地址配置时多加一条语句&allowMultiQueries=true:url:jdbc:mysql://localhost:3306/testgenerate?se

Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to

使用tigera-operator方式安装的calico,启动后报错,所有的calico相关的pod都显示CrashLoopBackoff。kubectl-ncalico-systemdescribepodcalico-node-2t8w6,发现如下报错:Readinessprobefailed:calico/nodeisnotready:BIRDisnotready:ErrorqueryingBIRD:unabletoconnecttoBIRDv4socket:dialunix/var/run/calico/bird.ctl:connect:nosuchfileordirectory.问题原

Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to

使用tigera-operator方式安装的calico,启动后报错,所有的calico相关的pod都显示CrashLoopBackoff。kubectl-ncalico-systemdescribepodcalico-node-2t8w6,发现如下报错:Readinessprobefailed:calico/nodeisnotready:BIRDisnotready:ErrorqueryingBIRD:unabletoconnecttoBIRDv4socket:dialunix/var/run/calico/bird.ctl:connect:nosuchfileordirectory.问题原

postgresSQL Extended Query执行过程和sharding-proxy的处理

pgExtendedQueryPostgreSQL:Documentation:15:55.2. MessageFlow多个阶段,可复用Parse→DESCRIBEstatement→SYNCParse解析,将sql文本字符串,解析成namedpreparedStatement语句(生命周期随session)占位符和参数类型Describe获取元数据,返回pst参数描述符parameterDescription和结果集的行描述符RowDescription由于此时还没执行Bind,还未将语句传输到backend执行,RowDescription中列的传输格式codecformat还是0;参数的

postgresSQL Extended Query执行过程和sharding-proxy的处理

pgExtendedQueryPostgreSQL:Documentation:15:55.2. MessageFlow多个阶段,可复用Parse→DESCRIBEstatement→SYNCParse解析,将sql文本字符串,解析成namedpreparedStatement语句(生命周期随session)占位符和参数类型Describe获取元数据,返回pst参数描述符parameterDescription和结果集的行描述符RowDescription由于此时还没执行Bind,还未将语句传输到backend执行,RowDescription中列的传输格式codecformat还是0;参数的

Mysql查询执行报错Packet for query is too large (6,831,159 > 4,194,304)

根据意思可以看出mysql执行的报文过大。需要我们设置允许的最大报文max_allowed_packet;org.springframework.dao.TransientDataAccessResourceException:###Errorqueryingdatabase.Cause:com.mysql.cj.jdbc.exceptions.PacketTooBigException:Packetforqueryistoolarge(6,831,159>4,194,304).Youcanchangethisvalueontheserverbysettingthe'max_allowed_p

Mysql查询执行报错Packet for query is too large (6,831,159 > 4,194,304)

根据意思可以看出mysql执行的报文过大。需要我们设置允许的最大报文max_allowed_packet;org.springframework.dao.TransientDataAccessResourceException:###Errorqueryingdatabase.Cause:com.mysql.cj.jdbc.exceptions.PacketTooBigException:Packetforqueryistoolarge(6,831,159>4,194,304).Youcanchangethisvalueontheserverbysettingthe'max_allowed_p

sqlalchemy 报错 Lost connection to MySQL server during query 解决

最近在开发过程中遇到一个sqlalchemylostconnection的报错,记录解决方法。报错信息python后端开发,使用的框架是Fastapi+sqlalchemy。在一个接口请求中报错如下:[2023-03-2406:36:35+0000][217][ERROR]ExceptioninASGIapplicationTraceback(mostrecentcalllast):File"/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py",line407,inrun_asgiresult=aw

sqlalchemy 报错 Lost connection to MySQL server during query 解决

最近在开发过程中遇到一个sqlalchemylostconnection的报错,记录解决方法。报错信息python后端开发,使用的框架是Fastapi+sqlalchemy。在一个接口请求中报错如下:[2023-03-2406:36:35+0000][217][ERROR]ExceptioninASGIapplicationTraceback(mostrecentcalllast):File"/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py",line407,inrun_asgiresult=aw