Thread: Re: pgaccess 0.93 problem.

Re: pgaccess 0.93 problem.

From
Constantin Teodorescu
Date:
Robert Szabo wrote:
>
> But I have some problem about the new v. 0.93
> I've Debian 2.0, tcl-tk 8.0. Postgress 6.3.2
> First argument is not a valid query result while executing
> "pg_result $pgres -numTuples"

PgAccess 0.93 will work fine on PostgreSQL 6.4 and higher.
Due to some enhancements made in libpgtcl, there is another option to
pg_result (-error) that does not exist in PosgreSQL 6.3.x

So, in order to make PgAccess 0.93 work with PostgreSQL 6.3.x you should
:

replace in procedure wpg_exec the following line:

set pgsql(errmsg) [pg_result $pgsql(res) -error]

with this one :

set pgsql(errmsg) "NO ERROR INFORMATION SUPPLIED"

And it will work fine! In some error cases, you will not get the
appropriate error message from libpgtcl.

Best wishes for the next year,

--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA