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
Boolean fields: 1/0 vs Y/N
Moderators: gto, EgonHugeist, Orbmu2k
Yes I'm quite sure.zippo wrote:Are you sure that both the ways are supported? Somewhere I used one, somewhere the second...
At the moment I have a table with a boolean field. Half of the entries are from an import that I did from a CSV file. These entries' boolean fields are either 1 or 0.
The other entries were entered in manually using Sqlite Administrator. These entries' boolean fields are either Y or N.
So, this application we use sometimes does something like "WHERE myBooleanField=1" and sometimes "ORDER BY myBooleanField"
In both cases, the results are not as expected.
Administrator, am I to understand from http://zeos.firmos.at/viewtopic.php?t=1 ... 3ec9c24a15 that you will NOT fix this?