pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Constantin Teodorescu <teo@flex.ro>
To: Stan Brown <stanb@awod.com>
To: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: [INTERFACES] Can;t connect to db with pgaccess
Date: Tue, 29 Dec 1998 09:52:58 +0200
Message-ID: <36888A5A.CD1CCBA8@flex.ro> (raw)
References: <199812282048.PAA12584@hub.org>

Stan Brown wrote:
> 
>         Downloaded the latest pgacess. Looks pretty neat. Unfortunatley it will
>         not connect to my 6.3 database. Thinking that it might be a
>         cnfiguration problem on this database (it has bee in service  for over
>         a year now). I donwloade the Debian package, and set up a test database
>         on the Debian box. Still mo go.

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



view thread (4+ messages)  latest in thread

Message-ID: <36888A5A.CD1CCBA8@flex.ro>
Permalink:  ../36888A5A.CD1CCBA8@flex.ro/
Also on:    postgresql.org/message-id/36888A5A.CD1CCBA8@flex.ro

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: teo@flex.ro, stanb@awod.com
  Subject: Re: [INTERFACES] Can;t connect to db with pgaccess
  In-Reply-To: <36888A5A.CD1CCBA8@flex.ro>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox