X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 50FD34760E3 for ; Sun, 13 Apr 2003 22:53:35 -0400 (EDT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 3486F47580B for ; Sun, 13 Apr 2003 22:53:30 -0400 (EDT) Received: (qmail 16556 invoked from network); 14 Apr 2003 02:53:58 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 14 Apr 2003 02:53:58 -0000 Received: from tpf.co.jp (3d_note1 [126.0.1.61]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id LAA01543; Mon, 14 Apr 2003 11:53:56 +0900 (JST) Message-ID: <3E9A2398.5F70C14C@tpf.co.jp> Date: Mon, 14 Apr 2003 11:57:28 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: "Sudhir S, Noida" Cc: pgsql-odbc@postgresql.org Subject: Re: lo_import doesn't works through ODBC ! References: Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-28.5 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/47 X-Sequence-Number: 2849 "Sudhir S, Noida" wrote: > > I am successful by trying the following SQL statement in the psql prompt. > INSERT INTO image (name, raster) > VALUES ('myimg', lo_import('/var/lib/pgsql/CmpJpg.jpg')); > > Through the psql interface this works properly and i have tried the > same using the UnixODBC's isql interface as well which again works > perfectly. > > The problem is, the same SQL statement doesn't works through ODBC, I have > no clues why it doesn't ? And when i tried to debug the application > at some point of time i can notice that "Error while executing the Query > (non-fatal)" and the return value is STMT_INFO_ONLY > > Any inputs on this problem would be hightly appreciated.. You seem to be using a pretty old driver. regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/