Avoid unnecessary double wrapping of SELECT statement when used as single function parameter.
This commit is contained in:
parent
22b2901336
commit
d197956271
16 changed files with 97 additions and 77 deletions
|
|
@ -75,11 +75,12 @@ LIMIT 30;
|
|||
query := SELECT(
|
||||
Payment.AllColumns,
|
||||
Customer.AllColumns,
|
||||
).
|
||||
FROM(Payment.
|
||||
INNER_JOIN(Customer, Payment.CustomerID.EQ(Customer.CustomerID))).
|
||||
ORDER_BY(Payment.PaymentID.ASC()).
|
||||
LIMIT(30)
|
||||
).FROM(
|
||||
Payment.
|
||||
INNER_JOIN(Customer, Payment.CustomerID.EQ(Customer.CustomerID)),
|
||||
).ORDER_BY(
|
||||
Payment.PaymentID.ASC(),
|
||||
).LIMIT(30)
|
||||
|
||||
testutils.AssertDebugStatementSql(t, query, expectedSQL, int64(30))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue