Mapping for type BIT broke afer upgrade from 1.0.1 to 1.0.4
"Oliver Seimel" <[email protected]> Tue, 29 Jan 2008 19:14:47 +0100
| Newsgroups | gmane.comp.jakarta.ojb.user |
|---|---|
| Message-ID | <CC62EA253F48405CB72C8A6431AFC685@mainframe> |
Hi,
we migrated from ojb 1.0.1 to 1.0.4
DB is Postgres. But I think, that the "problem" is independent
of the DB.
We use the type BIT(1) for boolean values, so a mapping looks
like this:
<field-descriptor
name="emailNotice"
column="emailnotice"
jdbc-type="BIT"
/>
With version 1.0.1 the generated SQL was
... WHERE emailnotice = '1' .....
With version 1.0.4 the generated SQL is
... WHERE emailnotice = 'true' .....
Thats not good, because the statement fails.
Does anybody know why ojb now maps the BIT types
to BOOLEAN?
Thank you very much
Oliver