I've got a problem evaluating boolean values from the mysql db.
drowUserRights.Item("blnBookRead") = True Ths line doesn't work
drowUserRights.Item("blnBookRead") = 1 This line works
Why can't I us VB.NET's Boolean for evaluationg a boolean value from the db.
The blnBookRead-fieldtype is: TINYINT(1)
regards
bumasoftware
Boolean evaluation in VB.NET ?
You're wrong. We advise to use GetSchemaTable method (or appropriate feature of MySqlDataAdapter/MySqlDataTable designer) at the coding stage, not when your application runs. The process should represent something like this: you create tables in db, create queries in designer, check result set metadata (schema table) and take decision about types you should use in the code.But does that mean that each time I need to fill a dataset, I first have to use the GetSchemaTable and convert it in to a dataset.
This behavior is caused by MySQL protocol.Why does it Work with an Access database - is it because a boolean is stored different here ??