pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ivan Petrov <ipp@mail.bg>
Cc: pgsql-odbc@postgresql.org
Subject: Re: relation %s does not exist ??? It actually does.
Date: Tue, 15 Mar 2005 09:50:42 -0500
Message-ID: <6029.1110898242@sss.pgh.pa.us> (raw)
In-Reply-To: <1110879153.aef3c71a275f0@mail.bg>
References: <1110879153.aef3c71a275f0@mail.bg>

Ivan Petrov <ipp@mail.bg> writes:
>   I am using ODBC driver to connect to Postgres via Delphi.
> It works fine, except a problem "ERROR: relation
> "sec_users" does not exist" and table sec_users exists in
> the database. I tried with public.sec_users and it is the
> same.

>   In psql console application :
> auto=3D#   select user_id
> auto-#   from sec_users
> auto-#   where user_name =3D 'postgres'
> auto-#     and is_locked =3D false
> auto-#     and passwd =3D md5('postgres')
> auto-#     and (password_expire_date > current_timestamp or
> auto(#          password_expire_date is null);
>  user_id
> ---------
>        1
> (1 row)

>   But I can not figure out why it doesn't work from ODBC ...

Sure you're connecting to the same database in both cases?  As the same
user?  (If they are different users, maybe one has a different schema
search_path set by default?)

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <6029.1110898242@sss.pgh.pa.us>
Permalink:  ../6029.1110898242@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6029.1110898242@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ipp@mail.bg
  Subject: Re: relation %s does not exist ??? It actually does.
  In-Reply-To: <6029.1110898242@sss.pgh.pa.us>
  References: <1110879153.aef3c71a275f0@mail.bg> <6029.1110898242@sss.pgh.pa.us>

* 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