Page 1 of 1

[solved] Error in ZStoredProc

Posted: 22.02.2013, 18:19
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.

Posted: 22.02.2013, 19:06
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);


Posted: 25.02.2013, 11:06
by userbr
Solved.

Very thanks.

Have a nice day.