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 940929FB1CA for ; Sat, 19 Aug 2006 05:31:12 -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 49314-08 for ; Sat, 19 Aug 2006 08:31: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 0C7BF9FB213 for ; Sat, 19 Aug 2006 05:30:57 -0300 (ADT) Received: from localhost (wm.hub.org [200.46.204.128]) by pgfoundry.org (Postfix) with ESMTP id C422F86CA76; Sat, 19 Aug 2006 08:30:56 +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 49314-05; Sat, 19 Aug 2006 08:30:52 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id 30F8186CA77; Sat, 19 Aug 2006 08:30:48 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000710 ] CHAR field of resultset contains garbled data Content-type: text/plain; charset=UTF-8 Message-Id: <20060819083048.30F8186CA77@pgfoundry.org> Date: Sat, 19 Aug 2006 08:30:48 +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/68 X-Sequence-Number: 8032 Bugs item #1000710, was opened at 2006-08-14 22:00 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000710&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Farid Zidan (faridz) Assigned to: Nobody (None) Summary: CHAR field of resultset contains garbled data Initial Comment: PostgreSQL ODBC Driver 8.02.00.02 resultset for CHAR(8) column contains garbled data. Example, column cmp_type_cd of the following select ( see attached picture ) Select "cmp_type_cd", "description", "ctrl_ins_dtm", "ctrl_upd_dtm", "ctrl_usr_id" from "in_sync_cmp_type" Table DDL is: /*==============================================================*/ /* Table: in_sync_cmp_type */ /*==============================================================*/ create table in_sync_cmp_type ( cmp_type_cd CHAR(8) not null, description VARCHAR(30) not null, ctrl_ins_dtm TIMESTAMP not null default CURRENT_TIMESTAMP, ctrl_upd_dtm TIMESTAMP not null, ctrl_usr_id VARCHAR(128) not null, constraint PK_IN_SYNC_CMP_TYPE primary key (cmp_type_cd) ); Sample Data: INSERT INTO in_sync_cmp_type VALUES ( 'DATA', 'Data', '2005-11-18 00:00:00', '2005-11-18 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'COL', 'Column', '2005-12-21 00:00:00', '2005-12-21 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'COLM', 'Column', '2005-12-21 00:00:00', '2005-12-21 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'IDX', 'Index', '2005-12-21 00:00:00', '2005-12-21 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'IDXM', 'Index', '2005-12-21 00:00:00', '2005-12-21 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'PK', 'PK', '2005-12-15 00:00:00', '2005-12-15 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'PKM', 'PK', '2005-12-15 00:00:00', '2005-12-15 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'FK', 'FK', '2005-11-18 00:00:00', '2005-11-18 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'FKM', 'FK', '2005-11-18 00:00:00', '2005-11-18 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'PRIV', 'Privilege', '2005-12-21 00:00:00', '2005-12-21 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'PRIVM', 'Privilege', '2005-12-21 00:00:00', '2005-12-21 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'TABLE', 'Tables', '2005-12-21 00:00:00', '2005-12-21 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'FOLDER', 'Folder', '2006-01-26 00:00:00', '2006-01-26 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'TRG', 'Trigger', '2006-02-28 00:00:00', '2006-02-28 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'TRGM', 'Trigger', '2006-02-28 00:00:00', '2006-02-28 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'PROCLS', 'Procedures', '2006-04-13 00:00:00', '2006-04-13 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'TEXT', 'Text', '2006-05-08 00:00:00', '2006-05-08 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'PCOL', 'Procedure/Function Column', '2006-06-06 00:00:00', '2006-06-06 00:00:00', 'sys'); INSERT INTO in_sync_cmp_type VALUES ( 'PCOLM', 'Procedure/Function Column', '2006-06-06 00:00:00', '2006-06-06 00:00:00', 'sys'); ---------------------------------------------------------------------- >Comment By: Hiroshi Inoue (hinoue) Date: 2006-08-19 08:30 Message: What kind of software are you using ? regards, Hiroshi Inoue ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000710&group_id=1000125