Re: pgaccess 0.93 problem.

From: Constantin Teodorescu <teo(at)flex(dot)ro>
To: Robert Szabo <rob(at)freemail(dot)c3(dot)hu>, PostgreSQL general <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: pgaccess 0.93 problem.
Date: 1998-12-26 18:54:40
Message-ID: 368530F0.6C787323@flex.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Jan Vicherek 1998-12-26 19:32:17 Re: [GENERAL] space-effective varchar(255)-like arrangement
Previous Message Bruce Momjian 1998-12-26 18:18:11 Re: [GENERAL] space-effective varchar(255)-like arrangement