HostEurope hat wohl die SQL-Datenbanken umgestellt - ist an mir vorüber gegangen. Bis vorhin.
Nun laufen Datenbankabfragen auf Objekte offensichtlich in einen Fehler
Code: Alles auswählen
MYSQL-ERROR
Fehler: 1064
Detail: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'of ON (h.DocumentTable="tblObjectFiles" AND of.ID=h.DID ) LEFT JOIN tblTemplates' at line 11
Info:
Query: SELECT
h.DID,
(SELECT UserName FROM tblhistory hh WHERE MAX(h.ModDate)=hh.ModDate AND hh.DID=h.DID AND h.DocumentTable=hh.DocumentTable) AS UserName,
h.DocumentTable AS ctable,
!ISNULL(l.ID) AS isOpen,
COALESCE(f.ID,of.ID,t.ID,o.ID) AS ID,
COALESCE(f.Path,of.Path,t.Path,o.Path) AS Path,
COALESCE(f.Text,of.Text,t.Text,o.Text) AS Text,
COALESCE(f.ContentType,of.ContentType,t.ContentType,o.ContentType) AS ContentType,
FROM_UNIXTIME(COALESCE(f.ModDate,of.ModDate,t.ModDate,o.ModDate),"%d.%m.%Y %H:%i") AS MDate
FROM tblhistory h LEFT JOIN tblLock l ON l.ID=DID AND l.tbl=h.DocumentTable AND l.UserID!=1 LEFT JOIN tblFile f ON (h.DocumentTable="tblFile" AND f.ID=h.DID ) LEFT JOIN tblObjectFiles of ON (h.DocumentTable="tblObjectFiles" AND of.ID=h.DID ) LEFT JOIN tblTemplates t ON (h.DocumentTable="tblTemplates" AND t.ID=h.DID) LEFT JOIN tblObject o ON (h.DocumentTable="tblObject" AND o.ID=h.DID)
WHERE h.ModDate>=("2020-06-19"-INTERVAL 1 YEAR) AND h.DocumentTable IN("tblFile","tblObjectFiles","tblTemplates","tblObject")
GROUP BY
h.DID,h.DocumentTable
ORDER BY
h.ModDate DESC
LIMIT
0,50
Ist die Version zu alt? Ist es ein großes Risiko da jetzt einfach im laufenden Betrieb ein Update einzuspielen? Wie bekomme ich das Problem gelöst?
Liebe Grüße und bleibt gesund!!