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 C4CAE9FB282 for ; Mon, 14 Aug 2006 19:00:42 -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 10086-02 for ; Mon, 14 Aug 2006 19:00:30 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 4498B9F97C2 for ; Mon, 14 Aug 2006 19:00:31 -0300 (ADT) Received: from localhost (mx1.hub.org [200.46.208.251]) by pgfoundry.org (Postfix) with ESMTP id E51B286C5E9; Mon, 14 Aug 2006 22:00:30 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 06819-03; Mon, 14 Aug 2006 19:00:18 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id AA78986C5EA; Mon, 14 Aug 2006 22:00:18 +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: <20060814220018.AA78986C5EA@pgfoundry.org> Date: Mon, 14 Aug 2006 22:00:18 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.068 tagged_above=0 required=5 tests=AWL, NO_REAL_NAME X-Spam-Level: * X-Archive-Number: 200608/47 X-Sequence-Number: 8011 Bugs item #1000710, was opened at 2006-08-14 18: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'); ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000710&group_id=1000125