Projekt

Allgemein

Profil

Aktionen

GX-Bug #67868

geschlossen

Auf Servern wo der MySQL STRICT Modus mit ONLY_FULL_GROUP BY nicht deaktiviert werden kann, können keine Artikel aufgerufen werden / On servers where the MySQL STRICT mode cannot be deactivated with ONLY_FULL_GROUP BY, no products can be opened

Von Daniel Wu vor mehr als 3 Jahren hinzugefügt. Vor fast 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Jonatas Fischer
Kategorie:
Core
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.1.3.0, 4.2.0.0, 4.2.0.0 beta1, 4.3.1.0 beta1, 4.3.1.0 beta2
Release Notes Langtext:

Anpassungen für MySQL Strict "ONLY_FULL_GROUP_BY"


Beschreibung

Auf Servern wo der MySQL STRICT Modus mit ONLY_FULL_GROUP BY nicht deaktiviert werden kann, können keine Artikel aufgerufen werden

Kann wie folgt reproduziert werden:

  1. öffne die MySQL Console (MiniSQL)
  2. gebe den Befehl "SET GLOBAL sql_mode = 'ONLY_FULL_GROUP_BY'" ein
  3. versuche einen Artikel mit Attributen oder Eigenschaften aufzurufen
  4. Es erscheint ein Fehler 500
  5. Im Log ist dann eine Fehlermeldung zu finden

On servers where the MySQL STRICT mode cannot be deactivated with ONLY_FULL_GROUP BY, no products can be opened

Can be reproduced as follows:

  1. open the MySQL console (MiniSQL)
  2. Enter the command "SET GLOBAL sql_mode = 'ONLY_FULL_GROUP_BY'".
  3. try to call up a product with attributes or properties
  4. an error appears 500
  5. in the log you will find an error message


Uncaught RuntimeException: SQL Error!
Query error: 'aldb.pa.options_values_price' isn't in GROUP BY - Invalid query: SELECT
po.products_options_id,
pov.products_options_values_id,
pov.products_options_values_name,
po.products_option_display_type,
pa.options_values_price,
pa.price_prefix,
pa.attributes_stock,
(select max(gm_filename) from products_options_values where products_options_values.
products_options_values_id= pov.products_options_values_id`) gm_filename

FROM products_attributes pa
INNER JOIN products_options po
ON po.products_options_id = pa.options_id
INNER JOIN products_options_values_to_products_options povtpo
ON po.products_options_id = povtpo.products_options_id
`



Zugehörige Tickets

Kopiert von GX-Entwicklung - GX-Bug #67712: Auf Servern wo der MySQL STRICT Modus mit ONLY_FULL_GROUP BY nicht deaktiviert werden kann, können keine Artikel aufgerufen werden / On servers where the MySQL STRICT mode cannot be deactivated with ONLY_FULL_GROUP BY, no products can be openedErledigtJulian Heckmann

Aktionen
Aktionen

Auch abrufbar als: Atom PDF