I considered implementing BOOLEAN, but found it easier to implement the
checkbox thing at the time. Talking about mappings, I tried bit, char,
nvarchar and int in my dbforms-config.xml, but neither worked. In fact I did
get conversion errors from the driver in some configurations, and the
database wouldn't feed the checkbox in all others. 

Regards,

Sebastian Scheible

-----Ursprungliche Nachricht-----
Von: Sergio Moretti [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 14. August 2003 17:06
An: jdbforms-interest
Betreff: Re: [dbforms] SQL data type "BIT"

>I think that the best way to do this is to add a new dbform's type 
>BOOLEAN, which map to boolean and use PreparedStatement.setBoolean to 
>write and getBoolean to read from jdbc layer, in this way I presume the 
>output will remain coerent with input. But if you have mapped it to a 
>string, you can try to use an int type, maybe the jdbc driver is able to 
>convert it correctly.
>
>cheers,
>Sergio Moretti


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to