Re: [SQLObject] Re: Bug, was: one to one relationship via foreign key--bug or dumbness?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2003-05-31 06:24:02
|
On Sat, 2003-05-31 at 00:56, Nick wrote: > Ian Bicking wrote: > > categoryId is '3', not the integer 3. Why is this happening? That > > seems to be the problem, but it shouldn't be possible to get a > > non-integer in there. > > As I recall, his original definition was a StringCol. That would do it. I should just take foreignKey the keyword argument out. Or, rather, it could be used directly with Col (maybe using sqlType), or with KeyCol or ForeignKey (ForeignKey being the prefered technique). Well... really integer IDs aren't that essential. The only time I've really noticed it is with the %i in __repr__. So maybe that could also be relaxed. Of course, in this case it actually was a bug, so... Ian |