[solved] ZAbstractRODataset.pas and FPC 2.6

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
zacheus
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 30.01.2012, 13:53

[solved] ZAbstractRODataset.pas and FPC 2.6

Post by zacheus »

Hello,

To install Zeos SVN 903 in lazarus
  • in lazarus 0.9.31-34335-fpc-2.5.1-20111221.win32 : no problem
but
  • in lazarus 0.9.31-35069-fpc-2.6.1-20120201.win32 : Enum TFieldType.ftInteger lazarus\fpc\2.6.1\source\packages\fcl-db\src\base\db.pas (110,50).
    While waiting for the patch, you can fix like this:

    \src\component\ZAbstractRODataset.pas [Lines 3480 and following]:

    Code: Select all

    {$IFDEF FPC}
    const
      BaseFieldTypes: array[TFieldType] of TFieldType = (
        ftUnknown, ftString, ftSmallint, ftInteger, ftWord,
        ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate,  ftTime, ftDateTime,
        ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo,
        ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar,
        ftWideString, ftLargeint, ftADT, ftArray, ftReference,
        ftDataSet, ftOraBlob, ftOraClob, ftVariant, ftInterface,
        ftIDispatch, ftGuid, ftTimeStamp, ftFMTBcd, ftFixedWideChar, ftWideMemo);
    {$ELSE}
     {$IFDEF VER180}... 
In a recent post :
IndianaJones wrote:Which revision are you talking, revision966, and which directory are you using? Still gives error.
Thanks.
svn co svn://zeos.firmos.at/zeos/branches/testing --> Revision 903
svn co svn://zeos.firmos.at/zeos/trunk --> Revision 903
So which directory are you using to download Revision 966 ?
Regards.
Last edited by zacheus on 01.02.2012, 15:49, edited 1 time in total.
marcov
Senior Boarder
Senior Boarder
Posts: 95
Joined: 24.06.2010, 09:17

Post by marcov »

The firmos SVN is no longer used since last March. SVN is now at sf.net again:

https://sourceforge.net/projects/zeoslib/develop
zacheus
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 30.01.2012, 13:53

Post by zacheus »

OK. Thanks

svn co https://zeoslib.svn.sourceforge.net/svn ... es/testing works fine (-->Rev 972)
Locked