X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 082649FA372 for ; Mon, 18 Sep 2006 20:54:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 26091-05 for ; Mon, 18 Sep 2006 20:54:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 5DEAF9F9F0F for ; Mon, 18 Sep 2006 20:54:53 -0300 (ADT) Received: (qmail 32662 invoked from network); 19 Sep 2006 08:54:50 +0900 Received: from unknown (HELO ?100.0.32.123?) (100.0.32.123) by sd2.tpf-fw-c.co.jp with SMTP; 19 Sep 2006 08:54:50 +0900 Message-ID: <450F31A8.4020108@tpf.co.jp> Date: Tue, 19 Sep 2006 08:54:16 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Lemaire Vincent CC: pgsql-odbc@postgresql.org Subject: Re: Error for insert large object References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.817 tagged_above=0 required=5 tests=AWL, RCVD_IN_WHOIS_BOGONS X-Spam-Level: * X-Archive-Number: 200609/73 X-Sequence-Number: 8224 Lemaire Vincent wrote: > Hello all world, > > > > I work on a project c# with a postgresql database. The communication is made > by the odbc driver. The select command is OK but I have a problem for insert > an Image in my table. > > > The script of creation of my table is as follows: > > > > CREATE TABLE images > > ( > > id_image int4 NOT NULL, > > image bytea, > > CONSTRAINT id_image PRIMARY KEY (id_image) > > ) > > WITH OIDS; > > ALTER TABLE images OWNER TO postgres; > > > > When I want insert data, I have an error how is generate by de odbc driver. > This error is "type "lo" does not exist Please check the bytea as LO option. regards, Hiroshi Inoue