On Wed, May 22, 2013 at 6:21 AM, Vlad <
vl...@altersoft.net> wrote:
> Phil, Thanks for the tips.
>
> I'll post my findings:
>
> I tested the two methods with the same connection string.
>
> The PQconnectdb works. (without RDD)
>
> But the function of the RDD does not work with connection strings.
>
> I looked at the source code: core.c (folder sddpg)
> There is:
>
>
> static HB_ERRCODE pgsqlConnect( SQLDDCONNECTION * pConnection, PHB_ITEM
> pItem )
> {
> PGconn * pConn;
> ConnStatusType status;
>
> pConn = PQsetdbLogin( hb_arrayGetCPtr( pItem, 2 ), NULL, NULL, NULL,
> hb_arrayGetCPtr( pItem, 5 ), hb_arrayGetCPtr( pItem, 3 ), hb_arrayGetCPtr(
> pItem, 4 ) );
>
>
>
> Note that the second parameter is NULL.