The query runs perfectly in the MySQL query browser, so i think the problem comes with UniDAC.
The filepath displayed in the message makes no sense to me.
Assertion failure
(D:\Projects\Delphi\Dac\MySQL\Source\MyClasses.pas, line 5864)
The Query simplified looks like:
Code: Select all
(SELECT
T1.ID AS Name,
T1.Partial DIV 3600 AS Partial,
T1.Total DIV 3600 AS Total,
T2.Unit AS Unit
FROM Table1 AS T1, Table2 AS T2
WHERE T1.ID = T2.ID
AND T2.Unit = 'hours')
UNION
(SELECT
T1.ID AS Name,
T1.Partial AS Partial,
T1.Total AS Total,
T2.Unit AS Unit
FROM Table1 AS T1, Table2 AS T2
WHERE T1.ID = T2.ID
AND T2.Unit = '')
ORDER BY
Name ASC
LIMIT 10000
cause all other queries in the program work without problems,
including the two parts of the UNION for themselves.[/code]