Ver Mensaje Individual
  #2  
Antiguo 08-02-2005
jgutti jgutti is offline
Miembro
 
Registrado: may 2003
Posts: 189
Reputación: 24
jgutti Va por buen camino
he solucionado mi problema modificando el archivo ZDbcInterbase6Metadata.pas
- Esta es la solución:
Release 6.1.5 does not support computed source fields. If such a field is used in a table, all INSERT statements generated by ZQuery and ZTable fail due to the attempt at updating a read-only field (ie the field that has a computed source).

I added a preliminary hack to support it, but it is not yet tested thoroughly. It works for me, though. It would be great if your could add this functionality to the 6.5 build.

I made the following changes:
- ZDbcInterbase6Metadata.pas, lines 1703-1710: the SQL SELECT metadata fetch statement has been augmented with another field: Code:
b.RDB$COMPUTED_SOURCE

- ZDbcInterbase6Metadata.pas, line 1788:
the statement Code:
TargetResultSet.UpdateBooleanByName('WRITABLE', True);
was replaced by Code:
TargetResultSet.UpdateBooleanByName('WRITABLE', (TempResultSet.GetStringByName('RDB$COMPUTED_SOURCE') = ''));

atte
jgutti
Responder Con Cita