Re: try to use bool/booleans with adapter/converter, but...

henk-jan ebbers <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
OK, problem solved:

can not use values True or False in SQL-string itself:
    'SELECT idpartner FROM partner WHERE active=True'  (does not work)
I need to used parameters:
    'SELECT idpartner FROM partner WHERE active=:name',{'name':True}  
(works)
(or something like that)
the thae adapters/converters do their work right.

Henk-Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.