[pgsql-jp: 25200] Re: Q) JDBC Driver and Examples

Shigeki Mimura mimu @ telepass.co.jp
2002年 3月 10日 (日) 14:45:22 JST


三村です。

ken> Opening large object 264080
ken> got obj=org.postgresql.largeobject.LargeObject @ dabadea4
ken> Opening test destination object
ken> Copying large object to file
ken> Copied 7678/7678 bytes
ken> Closing object
ken> Testing JDBC2 Blob interface:
ken> java.sql.SQLException: ERROR:  table "basic" does not exist

同じ事が起こりますね。
ログを見てみてみました。

[8] query: drop table basic
[9] DEBUG:  ProcessUtility: drop table basic
[10] ERROR:  table "basic" does not exist
[11] DEBUG:  query: begin;
[12] DEBUG:  ProcessUtility: begin;
[13] DEBUG:  query: create table basic (a oid)
[14] DEBUG:  ProcessUtility: create table basic (a oid)
[15] DEBUG:  query: insert into basic values (817617)
[16] DEBUG:  query: select a from basic
[17] DEBUG:  query: end
[18] DEBUG:  ProcessUtility: end
[19] DEBUG:  query: drop table basic
[20] DEBUG:  ProcessUtility: drop table basic
[21] DEBUG:  query: begin;
[22] DEBUG:  ProcessUtility: begin;

つまり、どこでexceptionが起こっていたかというと
[8]のdrop table basicの部分ですね。
これを実行する前にcreate table basic (a oid)でtableを作成したら
最後までいくようになりました。



pgsql-jp メーリングリストの案内