Re: [GENERAL] JDBC SQL command problems

From: James Olin Oden <joden(at)Lee(dot)k12(dot)nc(dot)us>
To: Jeffrey Napolitano <jnapoli(at)setech(dot)com>
Cc: General Questions for PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: [GENERAL] JDBC SQL command problems
Date: 1998-07-02 18:23:30
Message-ID: 81Jul1.131524edt.35713@gateway.lee.k12.nc.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I've compiled and installed the JDBC driver for Postgresql - Now I'm
> attempting to make the connection work, and pass a CREATE command to
> postgres.
>
> My database name is "bugs", the user connecting is "java", and its
> running on my local machine on port 5432. I am consistently getting a
> "The SQL Exception was thrown" ... after changing things around, I still
> get the same result. I've been reading "JDBC Database Access with Java"
> by Hamilton, Cattell, and Fisher, and their example doesn't work.
>
> Help?
>

Have you tried to run your query just under the psql program? That is the
first thing you should check, because if it fails there it will certainly
fail in your program. Also, you will be getting rid of all the complexity
of java so you can concentrate on getting the query to work. Once it is
working in psql, or if it does the first time you try, then its time to take
a real close look at your code.

That's just standard tech support for product x though, I hope it
helps...james

P.S. Just off the bat it looks like your query is missing a ';' at the
end...it kill you in C, and it will kill you in SQL.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message SierraAdm 1998-07-02 20:24:03 data entry forms
Previous Message Jeffrey Napolitano 1998-07-02 16:51:01 JDBC SQL command problems