[solved] Error in ZStoredProc

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
userbr
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 26.07.2009, 00:44

[solved] Error in ZStoredProc

Post by userbr »

Hi,

I'm having problem in ZStoredProc. I set the properties Connection and StoredProcName, but when I save the unit, close and open again, it loses this property and displays the following error:

"Error reading ZStoredProc1.StoredProcName: Database connection component is not assigned. Ignore the arror and continue? NOTE: Ignoring the error may cause components to be deleted or property values to be lost."

I'm using version 7.0.3-stable and XE.

Please, help me

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

Post by EgonHugeist »

userbr,

this issue is allready resolved. R2106 (SVN) on testing-7.1 / trunk and 7.0-patches.

Code: Select all


Diff of /branches/testing-7.1/src/component/ZStoredProcedure.pas [r2105] .. [r2106]
  Switch to side-by-side view

--- a/branches/testing-7.1/src/component/ZStoredProcedure.pas
+++ b/branches/testing-7.1/src/component/ZStoredProcedure.pas
@@ -327,12 +327,12 @@
   Catalog, Schema, ObjectName: string;
   ColumnType: Integer;
 begin
-  CheckConnected;
   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;
       Connection.ShowSQLHourGlass;
       try
         SplitQualifiedObjectName(Value, Catalog, Schema, ObjectName);

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
userbr
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 26.07.2009, 00:44

Post by userbr »

Solved.

Very thanks.

Have a nice day.
Post Reply