BUG #14712: postgres how to handle boolean datatype to use 0 and 1 using hibernate

From: aprasad(at)flexerasoftware(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14712: postgres how to handle boolean datatype to use 0 and 1 using hibernate
Date: 2017-06-19 07:09:20
Message-ID: 20170619070920.1551.7081@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14712
Logged by: Akanksha Prasad
Email address: aprasad(at)flexerasoftware(dot)com
PostgreSQL version: 9.6.2
Operating system: windows 7
Description:

I wanted to use boolean withd efault value as 1 in hbm file , the hibernate
generates the ddl for sql server and oracle and they both works fine but
postgres fails with error as cannot have int default 1 as value for boolean
field.
Please help with this. How can i do this with changes only at the dialect
level beacuse changing the application me too many changes and that too sql
server and oracle databases with fail.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Rushabh Lathia 2017-06-19 07:57:57 Re: BUG #14709: inconsistent answers with foreign data wrappers to mysql
Previous Message Andres Freund 2017-06-19 02:30:14 Re: Too many files in pg_replslot folder