Bugs item #2024794, was opened at 2008-07-22 19:33
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2024794&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: SQLObject release (specify)
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ray Van dolson (rayvd)
>Assigned to: Oleg Broytmann (phd)
Summary: Using idName with fromDatabase; id col issues
Initial Comment:
See this post:
http://thread.gmane.org/gmane.comp.python.sqlobject/9360
When using fromDatabase = True with idName:
class SystemsInfo(SQLObject):
class sqlmeta:
fromDatabase = True
table = 'SystemsInfo'
idType = str
idName = 'SystemName'
lazyUpdate = True
.. an attempt to insert a new row with all other columns but the index (SystemName) defined results in a duplicate column error:
item = SystemsInfo(id='uniquename')
SystemName is used both as the id column and is in place in the normal column listing.
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2009-05-18 20:15
Message:
Fixed in the revisions 3881:3888.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2024794&group_id=74338
|