Modify ↓
Opened 7 years ago
Closed 7 years ago
#1570 closed Bug/Fehler (fixed)
Error in admin/includes/functions/orders_function.php mit MySQL 8
| Reported by: | FräuleinGarn | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.5.0 |
| Component: | Admin | Version: | 2.0.4.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
admin/includes/functions/orders_function.php
Zeile 1242
$ust_query = xtc_db_query("SELECT tax_rate, SUM(tax) as tax_value_new
FROM ".TABLE_ORDERS_RECALCULATE."
WHERE orders_id = '".(int)$oID."'
AND tax !='0'
AND class = 'ot_tax'
GROUP BY tax_rate DESC");
Group by DESC wird da wohl nicht mehr unterstützt
Attachments (0)
Note:
See TracTickets
for help on using tickets.

Das war in MySQL wohl eh nie vorgesehen, dass eine Reihenfolge auf das GROUP BY angewandt wird, daher sollte es wohl so heißen:
$ust_query = xtc_db_query("SELECT tax_rate, SUM(tax) as tax_value_new FROM ".TABLE_ORDERS_RECALCULATE." WHERE orders_id = '".(int)$oID."' AND tax !='0' AND class = 'ot_tax' GROUP BY tax_rate ORDER BY tax_rate DESC");