youll notice from this:

> sqlalchemy.exceptions.SQLError: (InterfaceError) Error binding
> parameter 1 - probably unsupported type. u'INSERT INTO things (date,
> value) VALUES (?,?)' ['(datetime.date(2007, 6, 1),)', ('asdf',)]

both the date and the 'asdf' values are being sent in the form of one- 
element tuples.

this is due to this:

> class Thing(object):
>     def __init__(self, date, value):
>         self.date = date,
>         self.value = value,


which should be:

class Thing(object):
     def __init__(self, date, value):
         self.date = date
         self.value = value

and all is well.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to