Skip site navigation (1) Skip section navigation (2)

Unable to access table named "user"

From: Joe Kramer <cckramer(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Unable to access table named "user"
Date: 2009-05-12 07:19:32
Message-ID: b4c00a110905120019r78d2534ck3fb32c8320d2c79d@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi,

I have table named user (lower case) in public schema.
I can access it using Pgadmin as
SELECT * from "user"; SELECT * from "public.user"; SELECT * FROM public.user;

I can't find any way to access this table from Jdbc.
Tried to access as public.user, user in single and double quotes, nothing helps.
I get exceptions like
ERROR: relation "public.user" does not exist
ERROR: relation "user" does not exist

Also tried to execute "SET search_path TO public" beforehand in same
jdbc connection, makes no difference.

Is there any way?

Thanks.

Responses

pgsql-jdbc by date

Next:From: Joe KramerDate: 2009-05-12 07:26:32
Subject: Unable to access table named "user"
Previous:From: Jürgen LütersDate: 2009-05-11 17:11:15
Subject: prepared statement not working

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group