Closed Mrten closed 10 years ago
meh, I see I'm using old code (got it from yubikey-ksm-dpkg)
active=1
does not work for sqlite.
Isn't proper SQL to just say 'AND active'? active is a boolean variable after all. Hopefully this works on all databases...
That does not work for sqlite, that's why I started this bug, before I noticed that the Oracle addition already changed it to active=1
which leads me to believe that Oracle does not support it either. MySQL does not have it either (it's a synonym for TINYINT(1) there).
The boolean type is optional in SQL, AFAIK.
I believe the sqlite issue is fixed (though pull request #8 isn't merged)
as reference: https://travis-ci.org/Yubico/yubikey-ksm/
in ykksm-decrypt.php:
and active
is not valid SQL for sqlite, it always returns no results. Fix: useand active='true'
. I'll fork and send a pullrequest shortly.