Op 2010-06-22 13:47, Alan T het geskryf:
> 
> I defined TVisPerson_Create = class(TtiVisitorUpdate).....Got a problem as 
> the AfterExecSQL was inherited from TtiVistorUpdate, this is not a virtual 
> method,

Override AfterExecSQL in your visitor - it is a virtual method defined in
tiVisitorDB.pas (line 163).


  TtiVisitorUpdate = class(TtiObjectVisitor)
  protected
    procedure AfterExecSQL(const pRowsAffected:integer); virtual;
  public
    procedure Execute(const AData: TtiVisited); override;
  end;


But see the implementation of AfterExecSQL() in tiVisitorDB.pas unit. It
mentions that the tiQueryXXX descendant needs to specify if they support
RowsAffected because that is the only time AfterExecSQL is called. So far
only ADO, BDE and the SqlDB persistence layers have it implemented.

It's 3 lines of code to implement and activate it, but I don't have Delphi
to test all the other persistence layers and implement it myself.

What persistence layer are you using for MySQL? Zeos, SqlDB, ... ?

Regards,
  - Graeme -



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
tiOPF-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tiopf-talk

Reply via email to