Re: [SQLObject] How to insert a boolean into PostgreSQL
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Luke O. <lu...@me...> - 2004-02-20 09:33:45
|
>> ValueError: Unknown SQL builtin type: <type 'instance'> for TRUE > > Hmm... are you using an early version of Python 2.2? I think there was > a problem related to that version (before True and False were defined) Actually, as I recall this is a combination of using an older version of 2.2 and a slight bug in the workaround class in SQLObject. Take a look in Converters.py, the definition for class BOOL. It should be defined as a new-style class - class BOOL(object). But at least in some versions of SQLObject this was missing, leading to the error above. - Luke |