Delphi TField.Size with VARCHAR2(1000) type returns zero
Posted: Fri 29 Oct 2021 14:52
Hi,
I'm using ODAC components with Delphi 5.
I tried MyQuery.FieldByName('XXX').Size with :
- XXX = VARCHAR2(32) -> returns 32, that's OK
- XXX = VARCHAR2(1000) -> returns 0, that's wrong !
- XXX = VARCHAR2(4000) -> returns 0, that's wrong !
Is it a known problem and is there a way to avoid it ? (I mean how else can i get the size of a varchar2(4000) field ?)
Thx for any help !
I'm using ODAC components with Delphi 5.
I tried MyQuery.FieldByName('XXX').Size with :
- XXX = VARCHAR2(32) -> returns 32, that's OK
- XXX = VARCHAR2(1000) -> returns 0, that's wrong !
- XXX = VARCHAR2(4000) -> returns 0, that's wrong !
Is it a known problem and is there a way to avoid it ? (I mean how else can i get the size of a varchar2(4000) field ?)
Thx for any help !