Projekt

Allgemein

Profil

Aktionen

GX-Bug #70067

geschlossen

Kunden-Statistik zeigt bei älterer MySQL/Maria-DB-Version eine Fehlermeldung an

Von Moritz Bunjes vor mehr als 1 Jahr hinzugefügt. Vor mehr als 1 Jahr aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Marvin Muxfeld
Kategorie:
Adminbereich
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.7.1.0
Release Notes Langtext:

Die Statistiken-Seite für Kunden funktioniert jetzt auch bei älteren, unterstützen MariaDB/MySQL-Versionen


Beschreibung

Using MariaDB 10.3 or MySQL 5.7 for example causes an error on the Gambio Admin > Statistics > Overview > Customers page. A simple adjustment of a SQL query solves the problem.

SELECT COUNT(customers_id) AS totalCustomers, SUM(customers_newsletter) AS subscribers FROM customers WHERE (account_type = 0) AND (customers_status != 0);

instead of

SELECT COUNT(customers_id) AS totalCustomers, COUNT((SELECT customers_newsletter WHERE customers_newsletter = 1)) AS subscribers FROM customers WHERE (account_type = 0) AND (customers_status != 0)


Aktionen

Auch abrufbar als: Atom PDF