Skip to content

Commit 4318e2f

Browse files
riccardo-albertibrianchandotcom
authored andcommitted
COMMERCE-5487 Order left joins alphabetically
1 parent 7f8557e commit 4318e2f

File tree

1 file changed

+8
-8
lines changed
  • modules/apps/commerce/commerce-discount-service/src/main/resources/META-INF/custom-sql

1 file changed

+8
-8
lines changed

modules/apps/commerce/commerce-discount-service/src/main/resources/META-INF/custom-sql/default.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,16 +347,16 @@
347347
INNER JOIN
348348
CommerceDiscountRel ON
349349
CommerceDiscountRel.commerceDiscountId = CommerceDiscount.commerceDiscountId
350-
LEFT JOIN
351-
CommerceDiscountAccountRel ON
352-
CommerceDiscountAccountRel.commerceDiscountId = CommerceDiscount.commerceDiscountId
353350
LEFT JOIN
354351
CDiscountCAccountGroupRel ON
355352
CDiscountCAccountGroupRel.commerceDiscountId = CommerceDiscount.commerceDiscountId
353+
LEFT JOIN
354+
CommerceDiscountAccountRel ON
355+
CommerceDiscountAccountRel.commerceDiscountId = CommerceDiscount.commerceDiscountId
356356
WHERE
357357
(CommerceDiscount.active_ = [$TRUE$]) AND
358-
(CommerceDiscountAccountRel.commerceAccountId IS NULL) AND
359358
(CDiscountCAccountGroupRel.commerceAccountGroupId IS NULL) AND
359+
(CommerceDiscountAccountRel.commerceAccountId IS NULL) AND
360360
(CommerceChannelRel.commerceChannelId = ?) AND
361361
(
362362
(
@@ -387,16 +387,16 @@
387387
CommerceChannelRel ON
388388
(CommerceChannelRel.classPK = CommerceDiscount.commerceDiscountId) AND
389389
(CommerceChannelRel.classNameId = ?)
390-
LEFT JOIN
391-
CommerceDiscountAccountRel ON
392-
CommerceDiscountAccountRel.commerceDiscountId = CommerceDiscount.commerceDiscountId
393390
LEFT JOIN
394391
CDiscountCAccountGroupRel ON
395392
CDiscountCAccountGroupRel.commerceDiscountId = CommerceDiscount.commerceDiscountId
393+
LEFT JOIN
394+
CommerceDiscountAccountRel ON
395+
CommerceDiscountAccountRel.commerceDiscountId = CommerceDiscount.commerceDiscountId
396396
WHERE
397397
(CommerceDiscount.active_ = [$TRUE$]) AND
398-
(CommerceDiscountAccountRel.commerceAccountId IS NULL) AND
399398
(CDiscountCAccountGroupRel.commerceAccountGroupId IS NULL) AND
399+
(CommerceDiscountAccountRel.commerceAccountId IS NULL) AND
400400
(CommerceChannelRel.commerceChannelId = ?) AND
401401
(CommerceDiscount.target = ?)
402402
]]>

0 commit comments

Comments
 (0)