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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-jdbc by date

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