Re: [SQLObject] Col naming in MultipleJoin
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: deelan <de...@in...> - 2003-05-10 17:59:31
|
Nick wrote: >>this fails: >>pn = PhoneNumber.new(phone='666', type='home', PersonId=p.id) >> >>this works: >>pn = PhoneNumber.new(phone='666', type='home', PersonID=p.id) > > > Correct; the parameters in SQLObject methods match to the first argument > to Col, the Pythonic column name, not dbName, the column name in the > database. that's fine, but what i would like to know is why i can't name the Col "PersonId" and i have to call it "PersonID", this happens both in the pythonic column name and in the DB column name. am i missing something? thanks for your support. |