Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1C62A475A09 for ; Tue, 12 Nov 2002 07:35:22 -0500 (EST) Received: from c007.snv.cp.net (h008.c007.snv.cp.net [209.228.33.236]) by postgresql.org (Postfix) with SMTP id 67F8B47590C for ; Tue, 12 Nov 2002 07:35:21 -0500 (EST) Received: (cpmta 5360 invoked from network); 12 Nov 2002 04:35:23 -0800 Received: from 65.191.88.177 (HELO BONZO) by smtp.directvinternet.com (209.228.33.236) with SMTP; 12 Nov 2002 04:35:23 -0800 X-Sent: 12 Nov 2002 12:35:23 GMT From: Benjamin Scherrey To: pgsql-odbc@postgresql.org Date: Tue, 12 Nov 2002 07:35:05 -0500 X-Priority: 3 (Normal) Organization: Proteus Technologies, Inc. Message-Id: Subject: Fields being renamed in internal select statements... MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" X-Mailer: Opera 6.05 build 1140 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/55 X-Sequence-Number: 2232 I'm working on a project that converts an existing Access97 database to Postgres via ODBC. Unfortunately the Access db was not well designed and has field names with spaces in it. When I link to a table and bring it up in a table view it lists the field names correctly - however - I get an ODBC error and reviewing SQL.LOG reveals that it renames some of the fields in a very odd manner in the internal SQL request. For example: "Cancer Ctr Patient" is accessed as "Cancer '#S_C_H#' Patient" and "Direct Admit" is accessed as '#S_C_H#' Admit" (without a prefixed " char) which results in a parse error. This strange insertion/replacment of '#S_C_H#' for part of a field name has got me very confused. Have you ever seen this occur or know what I can do to fix it? This only happens internally in the ODBC and is never displayed anywhere. Appreciate any advice you can give me. thanx & later, Ben Scherrey