sqle icon indicating copy to clipboard operation
sqle copied to clipboard

xml文件审核,pg插件报错

Open hasa1K opened this issue 1 year ago • 0 comments

版本信息(Version)

v3 86cd961abc28ba1dfd7994689d8ec55c27b83783

问题描述(Describe)

使用pg数据源对xml进行文件审核,发生报错

截图或日志(Log)

页面表现: image sqled.log日志: time="2024-04-15T18:25:51+08:00" level=error msg="fail to call plugin interface [Parse], error: rpc error: code = Unknown desc = syntax error at or near "`"" plugin=PostgreSQL plugin_version=2 session_id=GEeoeRpbQOqVB9L8K6t2 thread_id=GPO

排查过程

后端进行xml解析时,会将sql中的字段名和表名加上反引号 image 将解析之后的sql,放入pg中执行,同样出现该问题 image

如何复现(To Reproduce)

  1. 添加pg数据源
  2. 使用pg数据源,进行xml文件审核

实现方案

变更影响面

hasa1K avatar Apr 16 '24 02:04 hasa1K