I see. Where can I start looking for such an error? What could possibly be causing this?
On Aug 7, 6:51 am, Stefano Fontanelli <s.fontane...@asidev.com> wrote: > Il 07/08/11 00.35, Aviv Giladi ha scritto: > > > Everything works great when I create and assign all 3 subratings to > > the rating object before I add it to the session. > > However, I need to be able to create a Rating that only has 1 or 2 > > subratings, and the other subratings absent. > > When I do that, SQLAlchemy tells me: > > InterfaceError: (InterfaceError) Error binding parameter 0 - probably > > unsupported type. u'SELECT SubRating2.id AS subrating2_id \nFROM > > subratings2 \nWHERE subrating2.id = ?' (<symbol 'NEVER_SET>,) > > > The above error is when I set Ratings's subrating1 and subrating3, but > > not subrating2. > > How do I avoid this error? > > I think the error is somewhere else in your application code. > The model works as you can check in the attached test. > > Regards, > Stefano. > > -- > Ing. Stefano Fontanelli > Asidev S.r.l. > Via Osteria Bianca, 108/A 50053 Empoli (Firenze) > Tel. (+39) 333 36 53 294 Fax. (+39) 0571 1 979 978 > E-mail: s.fontane...@asidev.com Web:www.asidev.com > Skype: stefanofontanelli > > test.py > 7KViewDownload -- 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 sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.