Menu

#459 Missing 6 fields on ZAbstractRODataset.pas recently added to TFieldType

Unknown
closed
None
Bug Report
2020-11-24
2020-11-13
No

Hey there,

I don't know precisely when, but at least from fpcsrc rev 47406(trunk @ 2020/11/13) there are 6 more fields in TFieldType on fpcsrc/packages/fcl-db/src/base/db.pas

The new ones are:

ftOraTimeStamp, ftOraInterval, ftLongWord, ftShortint, ftByte, ftExtended

For this fact src/component/ZAbstractRODataset.pas at around line 5318 will fail to compile by not having any equivalent.

I've temporarily fixed this by doing the following at around line 5318 of file src/component/ZAbstractRODataset.pas :

{$IF FPC_FULLVERSION >= 30301}
    , ftUnknown, ftUnknown, ftUnknown, ftUnknown, ftUnknown, ftUnknown // 40..45
{$ENDIF}

This allows ZAbstractRODataset.pas to compile. I haven't tested if it goes boom anywhere else.
This is a terrible hack and needs a bit more brain power to fix than I have now. Sorry for not suggesting a proper solution!

Hope this helps!

Cheers,
Gus

Discussion

  • Gustavo Carreno

    Gustavo Carreno - 2020-11-13
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -17,6 +17,7 @@
     ```
    
     This allows *ZAbstractRODataset.pas* to compile. I haven't tested if it goes boom anywhere else.
    +This is a terrible hack and needs a bit more brain power to fix than I have now. Sorry for not suggesting a proper solution!
    
     Hope this helps!
    
     
  • EgonHugeist

    EgonHugeist - 2020-11-24
    • status: open --> closed
    • assigned_to: EgonHugeist
     
  • EgonHugeist

    EgonHugeist - 2020-11-24

    Thanks for reporting, should be fixed for Zeos8 by: r7102

     

Log in to post a comment.