Assertion failure (MyClasses.pas, line 5864)
Posted: Thu 08 Oct 2009 11:24
Hi there, i am currently testing the UniDAC (3.0.0.2) components for Delphi 2009 and was really satisfied with it. But today i tried a MySQL query including UNION and ORDER BY.
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:
It really seems, that the UNION causes the problem,
cause all other queries in the program work without problems,
including the two parts of the UNION for themselves.[/code]
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]