U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » Possible SqlOption Problem [Solved]
Re: Possible SqlOption Problem [message #4403 is a reply to message #4401] Sat, 05 August 2006 06:54 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
I am sorry, it is really not very intuitive, but to conserve the space in DB, scheme BOOL is represented by string with values "0" and "1". That is also the difference between Option and SqlOption (regular Option uses bool).

Therefore you should be using

if((String)list.CListView.Get(SERVICE) == "1")

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MSSQL binary data
Next Topic: [sql] Select embeded in join
Goto Forum:
  


Current Time: Wed Jul 22 22:08:04 GMT+2 2026

Total time taken to generate the page: 0.00553 seconds