TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?
TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?
TZ*DatabaseMetadata.UncachedGetProcedureColumns methods are not called by any method in Zeos. Is it incomplete implementation or caller code was removed?
-
- Platinum Boarder
- Posts: 1939
- Joined: 17.01.2011, 14:17
Re: TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?
Hello Fr0sT,
erm - UncachedGetProcedureColumns gets called by TZAbstractDatabaseMetadata.GetProcedureColumns - or do I miss something obvious here?
Best regards, Jan
erm - UncachedGetProcedureColumns gets called by TZAbstractDatabaseMetadata.GetProcedureColumns - or do I miss something obvious here?
Best regards, Jan
Re: TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?
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.
-
- Platinum Boarder
- Posts: 1939
- Joined: 17.01.2011, 14:17
Re: TZ*DatabaseMetadata.UncachedGetProcedureColumns seem useless?
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.
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.