BOOLEAN Values
Posted: Wed 12 Jul 2017 01:36
Howdy!
I have a dataset with a BOOLEAN field called Enabled. There are 5 records in the table with Enabled = True
If I query the table with:
SELECT <Fields>
FROM <Table>
WHERE Enabled = 1
It returns 0 records.
If I query the table with:
SELECT <Fields>
FROM <Table>
WHERE Enabled = '1'
all 5 Enabled records are returned.
I read that SQLLITE stores BOOLEANS as an integer with values of 0/1. Why doesn't the first WHERE clause work?
How does VirtualQuery/SQLLITE combo map BOOLEAN fields?
Thanks,
Aggie85
I have a dataset with a BOOLEAN field called Enabled. There are 5 records in the table with Enabled = True
If I query the table with:
SELECT <Fields>
FROM <Table>
WHERE Enabled = 1
It returns 0 records.
If I query the table with:
SELECT <Fields>
FROM <Table>
WHERE Enabled = '1'
all 5 Enabled records are returned.
I read that SQLLITE stores BOOLEANS as an integer with values of 0/1. Why doesn't the first WHERE clause work?
How does VirtualQuery/SQLLITE combo map BOOLEAN fields?
Thanks,
Aggie85