If you downgrade to svn rev. 65 (testing branch) and try test project (link removed), you will see no error, but if you upgrade to latest svn or to svn rev. 66 and up, there is an error when you append data to firebird database. (in test project for lazarus is sample database included)
i'm testing on firebird 1.5 for windows and linux
my english sux, sorry...
p.s. error is access violation
line 651 is here:
Code: Select all
procedure TZUpdateSQL.CalculateDefaults(Sender: IZCachedResultSet;
RowAccessor: TZRowAccessor);
begin
{BEGIN PATCH [1214009] TZUpdateSQL - implemented feature to Calculate default values}
Sender.GetNativeResolver.CalculateDefaults(Sender, RowAccessor); // this is 651 line (see backtrace for more infos)
{END PATCH [1214009] TZUpdateSQL - implemented feature to Calculate default values}
end;
I have tested your suggestion (fduenas), but result is same...
Here is my diff:
Code: Select all
Index: zeos/branches/testing/src/dbc/ZDbcInterbase6.pas
===================================================================
--- zeos/branches/testing/src/dbc/ZDbcInterbase6.pas (revision 86)
+++ zeos/branches/testing/src/dbc/ZDbcInterbase6.pas (working copy)
@@ -46,7 +46,7 @@
Types,
{$ENDIF}
ZCompatibility, Classes, SysUtils, ZDbcUtils, ZDbcIntfs, ZDbcConnection,
- Contnrs, ZPlainInterbaseDriver, ZPlainFirebirdDriver,
+ Contnrs, ZPlainInterbaseDriver, ZPlainFirebirdDriver, ZDbcCachedResultSet,
ZPlainFirebirdInterbaseConstants, ZSysUtils, ZDbcInterbase6Utils, ZDbcLogging,
ZDbcGenericResolver, ZTokenizer, ZGenericSqlAnalyser;
@@ -128,7 +128,7 @@
end;
{** Implements a specialized cached resolver for Interbase/Firebird. }
- TZInterbase6CachedResolver = class(TZGenericCachedResolver)
+ TZInterbase6CachedResolver = class(TZGenericCachedResolver, IZCachedResolver)
public
function FormCalculateStatement(Columns: TObjectList): string; override;
end;