pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedrelation %s does not exist ??? It actually does.
3+ messages / 2 participants
[nested] [flat]
* relation %s does not exist ??? It actually does.
@ 2005-03-15 09:32 Ivan Petrov <ipp@mail.bg>
0 siblings, 1 reply; 3+ messages in thread
From: Ivan Petrov @ 2005-03-15 09:32 UTC (permalink / raw)
To: pgsql-odbc
Hello guys,
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=# select user_id
auto-# from sec_users
auto-# where user_name = 'postgres'
auto-# and is_locked = false
auto-# and passwd = 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 ...</br>-----------------------------</br>
<a target='_blank' href="http://mail.bg/ads/adclick.php?bannerid=2218&zoneid=13&source=&dest=http%3A%...;
“Убийствен пъзел” – вълнуващ като “Седем” и “Мълчанието на агнетата”.</br>
В кината от 11 март.</br>
http://www.newfilms-bg.com/</a><div id="beacon_2218" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src='http://mail.bg/ads/adlog.php?bannerid=2218&clientid=1596&zoneid=13&source=&a...; width='0' height='0' alt='' style='width: 0px; height: 0px;'></div>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: relation %s does not exist ??? It actually does.
@ 2005-03-15 14:50 Tom Lane <tgl@sss.pgh.pa.us>
parent: Ivan Petrov <ipp@mail.bg>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2005-03-15 14:50 UTC (permalink / raw)
To: Ivan Petrov <ipp@mail.bg>; +Cc: pgsql-odbc
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: relation %s does not exist ??? It actually does.
@ 2005-03-15 19:50 Ivan Petrov <ipp@mail.bg>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Ivan Petrov @ 2005-03-15 19:50 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-odbc
The same database, same user, same table. The only
difference is that in the first case I am connected through
ODBC, the second - through psql console application. When I
tried with PostgresDAC from microolap.com - it works fine.
It seems it is something with the ODBC driver...
Цитат на писмо от Tom Lane <tgl@sss.pgh.pa.us>:
> 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
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
> (send "unregister YourEmailAddressHere" to
> majordomo@postgresql.org)
>
--------------------------------------
Това писмо е изпратено от www.mail.bg
Безплатната поща в mail.bg предлага:
- Силна защита срещу СПАМ/рекламни писма
- 30MB безплатно (SMS от 2лв=3GB!)
- 30MB макс. размер на прикачен файл
- SMS за ново писмо (всички оператори)
- WAP достъп от GSM и без компютър
- Безплатен POP3 достъп
- 24 часов телефон за помощ/поддръжка
______________________________________
БЕЗ ИЗЛИШНИ ВЪПРОСИ РЕГИСТРИРАЙТЕ СВОЙ
БЕЗПЛАТЕН АДРЕС НА http://www.mail.bg
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-03-15 19:50 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-15 09:32 relation %s does not exist ??? It actually does. Ivan Petrov <ipp@mail.bg>
2005-03-15 14:50 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-03-15 19:50 ` Ivan Petrov <ipp@mail.bg>
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