Tencent / APIJSON

🏆 实时 零代码、全功能、强安全 ORM 库 🚀 后端接口和文档零代码,前端(客户端) 定制返回 JSON 的数据和结构 🏆 Real-Time coding-free, powerful and secure ORM 🚀 providing APIs and Docs without coding by Backend, and the returned JSON of API can be customized by Frontend(Client) users
http://apijson.cn
Other
17.14k stars 2.15k forks source link

fix: 处理自关联查询时,对Table:alias的写法sql表名拼写异常的问题 #750

Closed zxcwindy closed 1 month ago

zxcwindy commented 1 month ago

针对以下查询

{
  "[]":{
    "join":"&/Table:b/pid@",
    "Table:a":{
      "colId":"297e77a2623ce59401623ce740d90000",
      "@column":"colId,createTime"
    },
    "Table:b":{
      "@column":"colId,colCode,colName,pid",
      "pid@":"/Table:a/colId"
    }
  }
}

解决拼接的sql中表名为 "Table:a",导致sql查询异常的问题