Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A95056338AA for ; Wed, 4 Aug 2010 16:26:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 84100-03-5 for ; Wed, 4 Aug 2010 19:25:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.magwerks.com (mail.magwerks.com [209.248.233.131]) by mail.postgresql.org (Postfix) with ESMTP id E46DF633836 for ; Wed, 4 Aug 2010 16:25:55 -0300 (ADT) Received: from [192.168.1.35] by mail.magwerks.com (GMS 15.01.3664/RS2750.00.1b502c7c) with ESMTP id pomefaaa for pgsql-sql@postgresql.org; Wed, 4 Aug 2010 15:25:53 -0400 Message-ID: <4C59CC8C.1010206@magwerks.com> Date: Wed, 04 Aug 2010 15:24:44 -0500 From: Justin Graf User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: Richard Broersma CC: Peter Koczan , pgsql-sql@postgresql.org Subject: Re: Domains, casts, and MS Access References: =?utf-8?Q?____?= In-Reply-To: Content-Type: multipart/mixed; boundary="------------070803070902070704010204" X-AntiSpam: Checked for restricted content by Gordano's AntiSpam Software X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/23 X-Sequence-Number: 34463 This is a multi-part message in MIME format. --------------070803070902070704010204 Content-Type: multipart/alternative; boundary="------------050500030201080301090203" --------------050500030201080301090203 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 8/4/2010 1:56 PM, Richard Broersma wrote: > On Wed, Aug 4, 2010 at 11:51 AM, Peter Koczan wrote: > > >> This is one of my first forays into ODBC, so I didn't know that was a >> possibility. Is there any place where these are documented? Searching >> for ODBC options yields info on connection options, but none on >> behavior that I could find. >> > I know that there are a couple of options that affect the > representation of Booleans in the odbc driver. I'm not sure it will > do what you need though. > > However, here is the official documentation: (hopefully it helpful) > > http://psqlodbc.projects.postgresql.org/ > > > Yes there is an option to change bools to char * *Data Type Options:* affects how some data types are mapped: o /Text as LongVarChar/: PostgreSQL TEXT type is mapped to SQLLongVarchar, otherwise SQLVarchar. o /Unknowns as LongVarChar/: Unknown types (arrays, etc) are mapped to SQLLongVarChar, otherwise SQLVarchar o /Bools as Char/: Bools are mapped to SQL_CHAR, otherwise to SQL_BIT. My memory is fuzzy but there are some additional settings in Access that allows data type mapping... All legitimate Magwerks Corporation quotations are sent in a .PDF file attachment with a unique ID number generated by our proprietary quotation system. Quotations received via any other form of communication will not be honored. CONFIDENTIALITY NOTICE: This e-mail, including attachments, may contain legally privileged, confidential or other information proprietary to Magwerks Corporation and is intended solely for the use of the individual to whom it addresses. If the reader of this e-mail is not the intended recipient or authorized agent, the reader is hereby notified that any unauthorized viewing, dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and destroy all occurrences of this e-mail immediately. Thank you. --------------050500030201080301090203 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit On 8/4/2010 1:56 PM, Richard Broersma wrote:
On Wed, Aug 4, 2010 at 11:51 AM, Peter Koczan <pjkoczan@gmail.com> wrote:

  
This is one of my first forays into ODBC, so I didn't know that was a
possibility. Is there any place where these are documented? Searching
for ODBC options yields info on connection options, but none on
behavior that I could find.
    
I know that there are a couple of options that affect the
representation of Booleans in the odbc driver.  I'm not sure it will
do what you need though.

However, here is the official documentation: (hopefully it helpful)

http://psqlodbc.projects.postgresql.org/


  
Yes there is an option to change bools to char
  • Data Type Options: affects how some data types are mapped:
     
    • Text as LongVarChar: PostgreSQL TEXT type is mapped to SQLLongVarchar, otherwise SQLVarchar.
    • Unknowns as LongVarChar: Unknown types (arrays, etc) are mapped to SQLLongVarChar, otherwise SQLVarchar
    • Bools as Char: Bools are mapped to SQL_CHAR, otherwise to SQL_BIT.
My memory is fuzzy but there are some additional settings in Access that allows data type mapping...


All legitimate Magwerks Corporation quotations are sent in a .PDF file attachment with a unique ID number generated by our proprietary quotation system. Quotations received via any other form of communication will not be honored.

CONFIDENTIALITY NOTICE: This e-mail, including attachments, may contain legally privileged, confidential or other information proprietary to Magwerks Corporation and is intended solely for the use of the individual to whom it addresses. If the reader of this e-mail is not the intended recipient or authorized agent, the reader is hereby notified that any unauthorized viewing, dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and destroy all occurrences of this e-mail immediately.
Thank you.
--------------050500030201080301090203-- --------------070803070902070704010204 Content-Type: text/x-vcard; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="justin.vcf" begin:vcard fn:Justin Graf n:Graf;Justin org:Magwerks Corp adr:;;501 Commerce Drive;Danville ;IN;46122;USA email;internet:justin@magwerks.com tel;work:317-241-8011 ext 703 tel;fax:317-241-8015 x-mozilla-html:FALSE url:www.magwerks.com version:2.1 end:vcard --------------070803070902070704010204--