[solved] Zeoslib 7.0.3 and firebird 2.1/2.5

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
Post Reply
k1attila1
Junior Boarder
Junior Boarder
Posts: 29
Joined: 24.05.2013, 06:38

[solved] Zeoslib 7.0.3 and firebird 2.1/2.5

Post by k1attila1 »

I try to use zeoslib 7.0.3 with lazarus and delphi xe,xe2 with firebird 2.1/2.5.

The problems are the same.

At designtime i place a Zconnection and a Zstoredproc component and i set everyíthing well.

Zstoredproc : connection,storedprocname,params.

Everything work well at designtime.

The compilation is OK.

But when i try to run the application it crash with a runtime error message : "the connection is not assigned"

why ?

But everything work well if i set everything (connection,storedprocname,params.) from code.

Thanks
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

k1attila1,

that was a bug. It's allready fixed on 7.1 (SVN)

Can't find the thread now. ZStoredProcedure.pas:


Code: Select all

procedure TZStoredProc.SetStoredProcName(const Value: string);
var
  OldParams: TParams;
  Catalog, Schema, ObjectName: string;
  ColumnType: Integer;
begin
  if AnsiCompareText(Trim(SQL.Text), Trim(Value)) <> 0 then
  begin
    SQL.Text := Value;
    if ParamCheck and (Value <> '') and not (csLoading in ComponentState) and Assigned(Connection) then
    begin
      CheckConnected; <------ This line was wrong placed. Fix it and it works ((;
      Connection.ShowSQLHourGlass;
.....
Check the line i've commented above.
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
k1attila1
Junior Boarder
Junior Boarder
Posts: 29
Joined: 24.05.2013, 06:38

Post by k1attila1 »

Many thanks, Sir !

It works well.

Danke !
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

k1attila1,

Bitte. Kein Problem (:
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Post Reply