Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Conexión con bases de datos
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

Conexión con bases de datos

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 08-02-2005
jgutti jgutti is offline
Miembro
 
Registrado: may 2003
Posts: 189
Poder: 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
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 09:43:56.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi