Page 1 of 1

[bug_fixed] MissingConsts, Inlining, SilentException patch

Posted: 03.05.2006, 19:20
by AHUser
MissingConsts:
I missed two functions in ZMySQLUtils.

Inlining:
BDS 2006 requires the "Windows"-Unit to be included in the uses statement. I've IFDEF'ed the inclusion.

SilentException:
While working with a "select * from (select * from mytab, ... where ...) tab where tab..." I expirienced an annoying behaviour of the MySQL connection. It raises and catches an EZSQLException to find out if the table is a temporary table. Unfortunatelly the Debugger stops at that point. One solution would be to simply add EZSQLException to the non-watched exception classes. But that is nothing I want to do because then it becomes harder to find the "real" EZSQLExceptions.
A better solution is to throw a silent exception (derived from EAbort) in that case (the one I used in this patch).

Posted: 03.05.2006, 21:15
by mdaems
Hi AHUser.
Just compiled on D7 and Lazarus. I suppose it's allright. Thanks for correcting my temp-table fix, BTW. Recompiled my former test project for this and it still works :D.
I'm going to commit... Done

Mark