Re: C# MySql and Boolean
Posted by:
Jan Hansen
Date: December 29, 2004 08:15AM
Hi,
Well - I've never thought about GetBoolean(). I'll have to look into that. Currently, I'm just casting the values to System.SByte and checking whether they are 0 or not:
bool tmp = ((System.SByte)dr["field_name"]) == 0 ? false : true;
Hope this helps :o)
/Jan
Subject
Written By
Posted
December 24, 2004 02:51PM
Re: C# MySql and Boolean
December 29, 2004 08:15AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.