TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 280
Joined: 08.05.2014, 12:08

TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?

Post by Fr0sT »

TZ*DatabaseMetadata.UncachedGetProcedureColumns methods are not called by any method in Zeos. Is it incomplete implementation or caller code was removed?
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?

Post by marsupilami »

Hello Fr0sT,

erm - UncachedGetProcedureColumns gets called by TZAbstractDatabaseMetadata.GetProcedureColumns - or do I miss something obvious here?

Best regards, Jan
Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 280
Joined: 08.05.2014, 12:08

Re: TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?

Post by Fr0sT »

Yep, you're right :) But when it is executed? I tried dropping TZStoredProc on a form and making it active but this method won't be called.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?

Post by marsupilami »

Did you set the the stored procs name while it was hooked up to some working connection? ;)

grep search says, that GetProcedureColumns is called three times on the component layer by these callers:
function TZSQLMetadata.CreateResultSet(const SQL: string; MaxRows: Integer): IZResultSet;
function TZStoredProc.CreateStatement(const SQL: string; Properties: TStrings): IZPreparedStatement;
procedure TZStoredProc.SetStoredProcName(const Value: string);

If it wan't called by anyone, it would be more like a not finished function because it exposes meta data about the databases in a uniform way.
Post Reply