pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian <ian@ces-ltd.co.uk>
To: 'Jack C. Wei' <jackcwei+pgsql@gmail.com>
To: 'Roger De Four' <radfinancialsystems@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: RE: Boolean
Date: Mon, 27 Jul 2020 18:52:02 +0100
Message-ID: <019101d6643e$a261b2b0$e7251810$@ces-ltd.co.uk> (raw)
In-Reply-To: <CAK_oiDasZGbWtdq=dRT1gt3xwYNL+2eP+xBT7HPu8Xrk5OA+pA@mail.gmail.com>
References: <016301d66410$0581b810$10852830$@ces-ltd.co.uk>
	<CAK_oiDasZGbWtdq=dRT1gt3xwYNL+2eP+xBT7HPu8Xrk5OA+pA@mail.gmail.com>

Hi All 

 

Thanks for your help.

 

That worked great.

Now I have the same sort of problem with PostgreSQL Text types not filling MSSQL MEMO fields.

 

I’ve looked in the DSN definition but I didn’t see anything obvious.

 

Any ideas please?

 

Regards

Ian

 

 

From: Jack C. Wei [mailto:jackcwei+pgsql@gmail.com] 
Sent: 27 July 2020 16:28
To: ian@ces-ltd.co.uk
Cc: pgsql-odbc@postgresql.org
Subject: Re: Boolean

 

There's a "Bools as Char" option in psqlodbc. Try turning it off. If you're using DSN, the option is in page 1 of the Options dialog box. If you're using a connection string, add "BoolsAsChar=0;" to it. See https://odbc.postgresql.org/docs/config.html 

Disclaimer: I've never used this option myself so can't say for sure. I actually use smallint instead of boolean in my design.

 

 

 

On Mon, Jul 27, 2020 at 7:40 AM Ian <ian@ces-ltd.co.uk <mailto:ian@ces-ltd.co.uk> > wrote:

Hello

 

I am trying to use PostgreSQL as an alternative to MS SQL express.

But when my Delphi table opens, the Boolean field fails as it says that it expects Boolean but receives string.

 

How can I get Boolean to be a  BIT?

 

Thank you

 

Ian

 

Ian Burrows

 

07767 834329

CES Ltd.

11 Alverton Close

YO17 6RR

                                   Ces-ltd.co.uk <http://Ces-ltd.co.uk;                                                    https://ces-ltd.co.uk/the-croft-business-park/

                                                                                                

 

 

 

Attachments:

image001.jpg (image/jpeg, 1.2K) download view image
image002.jpg (image/jpeg, 2.8K) download view image

view thread (7+ messages)  latest in thread

Message-ID: <019101d6643e$a261b2b0$e7251810$@ces-ltd.co.uk>
Permalink:  ../019101d6643e$a261b2b0$e7251810$@ces-ltd.co.uk/
Also on:    postgresql.org/message-id/019101d6643e$a261b2b0$e7251810$@ces-ltd.co.uk

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: ian@ces-ltd.co.uk, jackcwei+pgsql@gmail.com, radfinancialsystems@gmail.com
  Subject: Re: Boolean
  In-Reply-To: <019101d6643e$a261b2b0$e7251810$@ces-ltd.co.uk>
  References: <016301d66410$0581b810$10852830$@ces-ltd.co.uk> <CAK_oiDasZGbWtdq=dRT1gt3xwYNL+2eP+xBT7HPu8Xrk5OA+pA@mail.gmail.com> <019101d6643e$a261b2b0$e7251810$@ces-ltd.co.uk>

* 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