SELECT
"creatorid",
"sn",
"accountid"
FROM
"smart_crmentity(CRM)"
INNER JOIN "smart_account" AS "ACC" ON smart_ "smart_crmentity(CRM)"."crmid" = "ACC"."accountid"
SELECT
"creatorid",
"sn",
"accountid"
FROM
"smart_crmentity"
INNER JOIN "smart_account" ON smart_ "smart_crmentity"."crmid" = "account"."accountid"
实际上我期待的结果应该是这样:
SELECT
"creatorid",
"sn",
"accountid"
FROM
"smart_crmentity" AS "CRM"
INNER JOIN "smart_account" AS "ACC" ON "CRM"."crmid" = "ACC"."accountid"
SELECT
"creatorid",
"sn",
"accountid"
FROM
"smart_crmentity"
INNER JOIN "smart_account" ON "smart_crmentity"."crmid" = "smart_account"."accountid"
Medoo BUGs
我在使用<1.0>版本的时候, 发现的bug, 目前1.0.2仍然还是存在的.
执行代码如下:
那么编译的SQL为:
实际上我期待的结果应该是这样:
那么建议的修改以下两处在select_context>: 545行
修改为 以让 table 支持 别名(AS)功能
那么建议的修正在select_context>: 584行
修改为 以让 join 表的前缀功能正常
另外建议可以公开一个方法, 例如 Build_sql 可以让外部可以直接得到编译后的SQL语句.