JDBC Drop/Create problem?

From: Greg Speegle <Greg(at)10happythings(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: JDBC Drop/Create problem?
Date: 2000-12-07 16:34:47
Message-ID: 3A2FBC27.5010207@10happythings.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Scenario:
Want to create a table via JDBC

Plan:
Drop existing table (if any)
Create new one

Problem:
If there was no table before, the Statement to drop the table throws an
exception, which is fine and not a problem.
However, if I then continue to try to create the table, I get a "table
not found" exception thrown by the Create
Statement. Doing a commit between the two eliminates the problem, but
this doesn't look like how the code
should work, or am I missing something?

Thanks for input,

Greg Speegle
BaylorUniversity

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Mount 2000-12-07 16:51:31 RE: JDBC Drop/Create problem?
Previous Message Peter Mount 2000-12-07 15:23:12 RE: JDBC PC Driver (Looking for)