This project is read-only.

SelectStar 的bug

Nov 24, 2013 at 6:02 AM
OQL q = OQL.From(m)
        .InnerJoin(mo).On(m.PGUID, mo.GUID)
        .Select()
        .Where(fun).END;
    q.SelectStar = true;
执行报错

\Entity\OQL.cs private string ToSelectString(string sql)
if (dictAliases != null)//有关联查询 这个地方没有对 SelectStar 进行替换处理
否则的话oracle 在多个关联实体进行查询的时候会报错,不明确的引用


SELECT * FROM
(SELECT rownum r_n,temptable.* FROM
( SELECT m.GUID,t0.GUID
FROM EXT_RLZY_STAFFOUT_LIST M
INNER JOIN EXT_RLZY_STAFFOUT T0 ON M.PGUID = T0.GUID
WHERE   T0.GUID =  M.PGUID   ) temptable Where rownum <= 3
) temptable2 WHERE r_n >= 1 这个写法报错

SELECT m.GUID,t0.GUID
替换成 select * 就正常了