#1139: [PATCH] SQLObject bug in handling of non default foreign keys
-------------------------------+--------------------------------------------
 Reporter:  trlandet           |        Owner:  anonymous
     Type:  defect             |       Status:  new      
 Priority:  normal             |    Milestone:  1.0b2    
Component:  SQLObject          |      Version:  1.0b1    
 Severity:  normal             |   Resolution:           
 Keywords:  regression, patch  |  
-------------------------------+--------------------------------------------
Changes (by trlandet):

  * summary:  SQLObject Regression in 1.0b1 from 0.9a8 => [PATCH] SQLObject
              bug in handling of non default foreign keys
  * milestone:  1.0 => 1.0b2
  * keywords:  regression => regression, patch

Comment:

 A patch for this bug:

 change the file sqlobject.inheritance.__init__ line 218

 '''from:'''
 {{{
 if col._default == sqlbuilder.NoDefault and col.name not in kw:
 }}}

 '''to:'''
 {{{
 if col._default == sqlbuilder.NoDefault and (col.name not in kw and
 col.foreignName not in kw):
 }}}

 This fixes the problem of foreign keys with non default values in
 SQLObject. Patch also submited to SQLObject at
 
[http://sourceforge.net/tracker/index.php?func=detail&aid=1576143&group_id=74338&atid=540674
 Sourceforge]

 Please apply this fix,

 Tormod Ravnanger Landet

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1139>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to