X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 8E3919FB232 for ; Tue, 29 Aug 2006 10:18:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 72630-07 for ; Tue, 29 Aug 2006 13:18:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 499209FB22F for ; Tue, 29 Aug 2006 10:18:04 -0300 (ADT) Received: from localhost (wm.hub.org [200.46.204.128]) by pgfoundry.org (Postfix) with ESMTP id 161EC86CC22; Tue, 29 Aug 2006 13:18:04 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 72462-08; Tue, 29 Aug 2006 13:17:55 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id 02AC786CC24; Tue, 29 Aug 2006 13:17:54 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000719 ] string representation for large objects ist wrong Content-type: text/plain; charset=UTF-8 Message-Id: <20060829131755.02AC786CC24@pgfoundry.org> Date: Tue, 29 Aug 2006 13:17:54 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.961 tagged_above=0 required=5 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200608/132 X-Sequence-Number: 8096 Bugs item #1000719, was opened at 2006-08-29 15:17 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000719&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Thomas Zehbe (thomasz) Assigned to: Nobody (None) Summary: string representation for large objects ist wrong Initial Comment: Trying the db sample of wxWidgets 2.7.0-1 the postgreSQL server logged this message: LOG: Anweisung: INSERT INTO contacts (NAME,ADDRESS1,ADDRESS2,CITY,STATE,POSTCODE,COUNTRY,JOINDATE,IS_DEV,CONTRIBS, LINE_CNT,LANGUAGE,PICSIZE,PICTURE) VALUES ('t','','','','','','','1980-01-01 00:00:00'::timestamp,0,0,0,0,28151,'11 8667'::lo) FEHLER: Typ »lo« existiert nicht The isnert statement tries to insert a blob and the string represanttion ind psqlodbc driver is actually "lo", wich isn't accepted. After changing the represantion in 2 files to "oid" blob support works. I changed the following files: psqlodbc.h changed #define PG_TYPE_LO_NAME "lo" to #define PG_TYPE_LO_NAME "oid" and convert.c in the ResolveOneParam() function at line 2983 from sprintf(param_string, "'%d'::lo", lobj_oid); to sprintf(param_string, "'%d'::oid", lobj_oid); My versions are psqlodbc 8.01.0200 and PostgreSQL 8.0.1 Hope this helps. Regards Thomas ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000719&group_id=1000125