[bug_fixed] MissingConsts, Inlining, SilentException patch

Code patches written by our users to solve certain "problems" that were not solved, yet.

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
AHUser
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: 11.04.2006, 00:33

[bug_fixed] MissingConsts, Inlining, SilentException patch

Post 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).
You do not have the required permissions to view the files attached to this post.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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
Post Reply