Re: Error connecting with PGDBE
Posted: Wed Apr 08, 2020 8:18 am
If you study my code in SqlQuery.Prg (approximately line 5038) you will see that it is different than the code that you posted.
Try changing your code to the above.
I am passing a pointer to the DacSession() object.
Also, I use the :Query() method rather than :Execute().
Working with PGDBE has been very difficult.
It is poorly documented. I had to learn thru a lot of hacking.
Code: Select all
oPgStatement := DacSqlStatement(oSession):FromChar(cStatement)
oPgStatement:Build():Query(,cAlias)
I am passing a pointer to the DacSession() object.
Also, I use the :Query() method rather than :Execute().
Working with PGDBE has been very difficult.
It is poorly documented. I had to learn thru a lot of hacking.