Fix for #185 - RawSql parse not working with "order siblings by NAME"

This commit is contained in:
rbygrave
2014-12-17 21:03:53 +13:00
parent 15be5dd4c7
commit 43ecfe7c19
5 changed files with 53 additions and 16 deletions
@@ -23,7 +23,7 @@ public class TestRawSqlOrmWrapper2 extends BaseTestCase {
ResetBasicData.reset();
String sql = " select order_id, 'ignoreMe', sum(d.order_qty*d.unit_price) as totalAmount "
+ " from o_order_detail d" + " group by order_id ";
+ " from o_order_detail d group by order_id ";
RawSql rawSql = RawSqlBuilder.parse(sql).columnMapping("order_id", "order.id")
.columnMappingIgnore("'ignoreMe'")