Re: serial field with delphi
Posted in 1999
Sergey Komisar — — source: Informix-list mailing list archive (1991-1998)
Sergey Komisar wrote: > Hi JM! > > function GetSQLCA(DataBase : TDataBase) : TSQLCA; > var i : word; > FSQLCA : TSQLCA; > begin > DbiGetProp(hDBIObj(DataBase.Handle), > drvNATIVESQLCA, > @FSQLCA, > sizeof(TSQLCA), > i); > Result := FSQLCA; > end; > OOPS ! The procedure DBIGetProp work only if TQuery has UpdateObject and CashedUpdates = true : ASomeQuery.ApplyUpdates; GetSQLCA; Any other TBDEDataset methods deallocate cursor or reread recordset and reset the sqlca record. Kom.