pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Boolean
7+ messages / 4 participants
[nested] [flat]

* Boolean
@ 2020-07-27 12:18  Ian <ian@ces-ltd.co.uk>
  0 siblings, 2 replies; 7+ messages in thread

From: Ian @ 2020-07-27 12:18 UTC (permalink / raw)
  To: pgsql-odbc

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
https://ces-ltd.co.uk/the-croft-business-park/

 


 

 

 

Attachments:

image005.jpg (image/jpeg, 1.2K) download view image
image006.jpg (image/jpeg, 2.8K) download view image
^ permalink raw reply [nested|flat] 7+ messages in thread

* Re: Boolean
@ 2020-07-27 15:27  Jack C. Wei <jackcwei+pgsql@gmail.com>
  parent: Ian <ian@ces-ltd.co.uk>
  1 sibling, 1 reply; 7+ messages in thread

From: Jack C. Wei @ 2020-07-27 15:27 UTC (permalink / raw)
  To: ian@ces-ltd.co.uk; +Cc: pgsql-odbc

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> 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
>
> https://ces-ltd.co.uk/the-croft-business-park/
>
>                                   [image: ceslogo2_small]
>                                                               [image:
> CroftBusinessPark small]
>
>
>
>
>
>
>

Attachments:

image005.jpg (image/jpeg, 1.2K) download view image
image006.jpg (image/jpeg, 2.8K) download view image
^ permalink raw reply [nested|flat] 7+ messages in thread

* RE: Boolean
@ 2020-07-27 17:52  Ian <ian@ces-ltd.co.uk>
  parent: Jack C. Wei <jackcwei+pgsql@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Ian @ 2020-07-27 17:52 UTC (permalink / raw)
  To: 'Jack C. Wei' <jackcwei+pgsql@gmail.com>; 'Roger De Four' <radfinancialsystems@gmail.com>; +Cc: pgsql-odbc

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
^ permalink raw reply [nested|flat] 7+ messages in thread

* Re: Boolean
@ 2020-07-27 17:56  Roger De Four <radfinancialsystems@gmail.com>
  parent: Ian <ian@ces-ltd.co.uk>
  0 siblings, 0 replies; 7+ messages in thread

From: Roger De Four @ 2020-07-27 17:56 UTC (permalink / raw)
  To: ian@ces-ltd.co.uk; +Cc: Jack C. Wei <jackcwei+pgsql@gmail.com>; pgsql-odbc

Ian,

Did you mean Axxess Memo field ?

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Boolean
@ 2020-07-27 17:59  Roger De Four <radfinancialsystems@gmail.com>
  parent: Ian <ian@ces-ltd.co.uk>
  1 sibling, 1 reply; 7+ messages in thread

From: Roger De Four @ 2020-07-27 17:59 UTC (permalink / raw)
  To: ian@ces-ltd.co.uk; +Cc: pgsql-odbc

Sorry, meant MS ACCESS :: "*Did you mean Axxess Memo field *?"


Best Regards

Roger De Four
Database Developer
*RAD Financial Systems*

Cell #/WhatsApp: +1-(868)-342-8587
Email: radfinancialsystems@gmail.com




On Mon, 27 Jul 2020 at 10:40, Ian <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
>
> https://ces-ltd.co.uk/the-croft-business-park/
>
>                                   [image: ceslogo2_small]
>                                                               [image:
> CroftBusinessPark small]
>
>
>
>
>
>
>

Attachments:

image005.jpg (image/jpeg, 1.2K) download view image
image006.jpg (image/jpeg, 2.8K) download view image
^ permalink raw reply [nested|flat] 7+ messages in thread

* RE: Boolean
@ 2020-07-29 10:37  Ian <ian@ces-ltd.co.uk>
  parent: Roger De Four <radfinancialsystems@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Ian @ 2020-07-29 10:37 UTC (permalink / raw)
  To: 'Roger De Four' <radfinancialsystems@gmail.com>; +Cc: pgsql-odbc

Just following up on my Text WideString Memo problem.

Text as LongVarChar does not seem to work.

 

 



 

From: Roger De Four [mailto:radfinancialsystems@gmail.com] 
Sent: 27 July 2020 19:00
To: ian@ces-ltd.co.uk
Cc: pgsql-odbc@postgresql.org
Subject: Re: Boolean

 

Sorry, meant MS ACCESS :: "Did you mean Axxess Memo field ?"

 

 

Best Regards

 

Roger De Four

Database Developer

RAD Financial Systems

 

Cell #/WhatsApp: +1-(868)-342-8587

Email: radfinancialsystems@gmail.com <mailto:radfinancialsystems@gmail.com> 

 

 

 

On Mon, 27 Jul 2020 at 10:40, 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.png (image/png, 12.2K) download view image
image002.jpg (image/jpeg, 1.2K) download view image
image003.jpg (image/jpeg, 2.8K) download view image
^ permalink raw reply [nested|flat] 7+ messages in thread

* RE: Boolean
@ 2020-07-29 11:54  Danny Severns <Danny@eidl-sw.com>
  parent: Ian <ian@ces-ltd.co.uk>
  0 siblings, 0 replies; 7+ messages in thread

From: Danny Severns @ 2020-07-29 11:54 UTC (permalink / raw)
  To: ian@ces-ltd.co.uk <ian@ces-ltd.co.uk>; Roger De Four <radfinancialsystems@gmail.com>; +Cc: pgsql-odbc

Have you tried changing your column on the PG table to VARCHAR without a length qualifier to see if that works?  I think TEXT in each of the two DBs have different practical max size limits which might account for the incompatibility error.  Theoretically, there should be no difference in the data types TEXT between the two DBs, nor between TEXT and VARCHAR without a length qualifier.  Perhaps there is a difference in the table metadata for the columns in each table for the different lengths or other attributes, as noted in your screen shot, and that triggers the incompatibility.  It might be worth a shot if you haven’t tried it.


From: Ian <ian@ces-ltd.co.uk>
Sent: Wednesday, July 29, 2020 5:37 AM
To: 'Roger De Four' <radfinancialsystems@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: RE: Boolean

Just following up on my Text WideString Memo problem.
Text as LongVarChar does not seem to work.


[cid:image001.png@01D66575.23D9E5B0]

From: Roger De Four [mailto:radfinancialsystems@gmail.com]
Sent: 27 July 2020 19:00
To: ian@ces-ltd.co.uk<mailto:ian@ces-ltd.co.uk>
Cc: pgsql-odbc@postgresql.org<mailto:pgsql-odbc@postgresql.org>
Subject: Re: Boolean

Sorry, meant MS ACCESS :: "Did you mean Axxess Memo field ?"


Best Regards

Roger De Four
Database Developer
RAD Financial Systems

Cell #/WhatsApp: +1-(868)-342-8587
Email: radfinancialsystems@gmail.com<mailto:radfinancialsystems@gmail.com>



On Mon, 27 Jul 2020 at 10:40, 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/
                                  [ceslogo2_small]                                                               [CroftBusinessPark small]





Attachments:

image001.png (image/png, 12.2K) download view image
image002.jpg (image/jpeg, 1.2K) download view image
image003.jpg (image/jpeg, 2.8K) download view image
^ permalink raw reply [nested|flat] 7+ messages in thread


end of thread, other threads:[~2020-07-29 11:54 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 12:18 Boolean Ian <ian@ces-ltd.co.uk>
2020-07-27 15:27 ` Jack C. Wei <jackcwei+pgsql@gmail.com>
2020-07-27 17:52   ` Ian <ian@ces-ltd.co.uk>
2020-07-27 17:56     ` Roger De Four <radfinancialsystems@gmail.com>
2020-07-27 17:59 ` Roger De Four <radfinancialsystems@gmail.com>
2020-07-29 10:37   ` Ian <ian@ces-ltd.co.uk>
2020-07-29 11:54     ` Danny Severns <Danny@eidl-sw.com>

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