madorin / fibplus

FibPlus Library for Delphi and C++Builder. Data access components for Firebird & Interbase.
168 stars 58 forks source link

Stop "Transaction not active" error for StoredProc component when database not open #70

Open todaysoftware opened 2 years ago

todaysoftware commented 2 years ago

Setting the procedure name when the database is not connected causes the above exception.

To fix this I moved the code that generates the SQL from where it sets the procedure name to just prior to preparing the statement.