Re: pgaccess 0.93 problem. - Mailing list pgsql-general

From Constantin Teodorescu
Subject Re: pgaccess 0.93 problem.
Date
Msg-id 368530F0.6C787323@flex.ro
Whole thread Raw
List pgsql-general
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

pgsql-general by date:

Previous
From: Bill Sneed
Date:
Subject: 6.4.1 problem
Next
From: Robert Chalmers
Date:
Subject: Is there something special to do to pull 6.1 db.out files into 6.4.1 ?