Boolean fields: 1/0 vs Y/N
Posted: 01.09.2008, 16:37
Hi,
When editing table data by using the Edit Data tab, checking / unchecking checkboxes for boolean fields enters Y or N in the fields.
I understand that Sqlite is weakly typed and that using Y/N as opposed to 1/0 is a personal choice, but I really feel that 1/0 is a better option.
Almost all the other Sqlite GUI's I've encountered uses 1/0 for boolean fields. So my colleagues use some of the other tools and this one application we use does queries like "SELECT * FROM Users WHERE IsActive=1".
We don't have access to change that code. I'm one of the few to use Sqlite Administrator and the Y/N is creating a lot of problems. I have to update the table manually with queries.
Don't you think 1/0 is more of an industry standard than Y/N ?
If you agree, please switch to 1/0 or at least make it an optional preference somewhere.
Thanks again for a great tool.
Francois
When editing table data by using the Edit Data tab, checking / unchecking checkboxes for boolean fields enters Y or N in the fields.
I understand that Sqlite is weakly typed and that using Y/N as opposed to 1/0 is a personal choice, but I really feel that 1/0 is a better option.
Almost all the other Sqlite GUI's I've encountered uses 1/0 for boolean fields. So my colleagues use some of the other tools and this one application we use does queries like "SELECT * FROM Users WHERE IsActive=1".
We don't have access to change that code. I'm one of the few to use Sqlite Administrator and the Y/N is creating a lot of problems. I have to update the table manually with queries.
Don't you think 1/0 is more of an industry standard than Y/N ?
If you agree, please switch to 1/0 or at least make it an optional preference somewhere.
Thanks again for a great tool.
Francois