Re: PgOleDB... Varchar problem

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 12/01/04


Date: Tue, 30 Nov 2004 21:25:37 -0600


>i use Delphi 7, with PostgreSQL.
>but, a have a problem with length varchar. i report this to shachar and
>merlin, the reply of it it was that the problem is in vcl of delphi,
>that determines perhaps that one string without size is one memo...
>exists some configuration or parametro that if can pass, in
>adoconnection, that determines the size of varchar?

I don't know what shachar and merlin are but you got some bad advice.
All the Delphi VCL layer does is translate the ADO datatype to delphi's native
datatype.
Here is the appropriate code from ADOdb
   adVarChar: Result := ftString;
    adBSTR, adWChar, adVarWChar: Result := ftWideString;
    adLongVarChar, adLongVarWChar: Result := ftMemo;

Your problem is probably in your OleDB driver

--
Brian Bushay (TeamB)
Bbushay@NMPLS.com