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

Siehe SQL Bug in orders_functions.php

Attachments (0)

Change History (2)

comment:1 by Torsten Riemer, 7 years ago

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");

comment:2 by Gerhard Waldemair, 7 years ago

Resolution: fixed
Status: newclosed

In 11508:

fix #1570

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.