pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Hartwig <daveh@insightdist.com>
To: leif@danmos.dk
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Postgres ODBC and SQL_BIT
Date: Wed, 02 Sep 1998 12:59:29 -0400
Message-ID: <35ED7971.F5639931@insightdist.com> (raw)
References: <m0zE9EN-000G4UC@danmos>



leif@danmos.dk wrote:

>   Hi all,
>
>    Excuse me for a newbie question.
>
>    I am trying to make a PostgreSQL database that must be compatible with
> an existing M$Access database. I have some trouble figuring out what
> postgres type to use for SQL_BIT. I believe the Access type is called Yes/No
> (and is used for checkboxes.) I am also using this in a C/C++ program using
> ODBC. My C/C++ program correctly connects to an Access database with these
> fields, and I have tried both 'bool' and 'char' as types in the Postgres
> database, but none of them works. Is there a standard type for this or do
> I have to make my own (and if so, how?) ?

MS Access will not take any ODBC SQL data type and translate it into a check box.
Other tool may do this but not MS Access.   Access only supports check boxes on
Access databases.

As for what Access it will do - The psqlodbc driver as options to treat postgresql
bools as SQL_CHAR (t/f) or or SQL_BIT.  MS Access displays SQL_BIT as -1/0.

If you are not using the psqlodbc driver, you are on your own.




view thread (3+ messages)  latest in thread

Message-ID: <35ED7971.F5639931@insightdist.com>
Permalink:  ../35ED7971.F5639931@insightdist.com/
Also on:    postgresql.org/message-id/35ED7971.F5639931@insightdist.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: daveh@insightdist.com, leif@danmos.dk
  Subject: Re: [INTERFACES] Postgres ODBC and SQL_BIT
  In-Reply-To: <35ED7971.F5639931@insightdist.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox