Reading bigints written to integer fields in sqlite
Posted: Tue 02 Sep 2014 12:57
My problem is related to sqlites relaxed type affinity in that if a integer field is defined as a bigint all is OK. Unfortunately sqlite allows the user to define a field as integer, but will happily store a bigint in the field without any loss. So when I try and read an integer field that contains a value > 32bits into a grid I get an erroneous value displayed.
I have no control over my source datasets, so I cannot ensure that fields are defined correctly therefore I am looking for a way with Devart to get around this.
Is there a way with unidac to force a field to return a type definition of bigint/largeint?
Ideally I would like to force all integer fields to show a defined type of bigint if this is possible.
Cheers
I have no control over my source datasets, so I cannot ensure that fields are defined correctly therefore I am looking for a way with Devart to get around this.
Is there a way with unidac to force a field to return a type definition of bigint/largeint?
Ideally I would like to force all integer fields to show a defined type of bigint if this is possible.
Cheers