[Modeling-cvs] ProjectModeling/Modeling/DatabaseAdaptors/SQLiteAdaptorLayer SQLiteSchemaGeneration.p
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-12-17 17:11:55
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/DatabaseAdaptors/SQLiteAdaptorLayer In directory sc8-pr-cvs1:/tmp/cvs-serv24909/Modeling/DatabaseAdaptors/SQLiteAdaptorLayer Modified Files: SQLiteSchemaGeneration.py Log Message: Fixed bug #861048: forgot to include bug fix for SQLite Index: SQLiteSchemaGeneration.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/DatabaseAdaptors/SQLiteAdaptorLayer/SQLiteSchemaGeneration.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SQLiteSchemaGeneration.py 24 Aug 2003 14:13:09 -0000 1.4 --- SQLiteSchemaGeneration.py 17 Dec 2003 17:11:52 -0000 1.5 *************** *** 170,174 **** - its inverseRelationship, if any, is a toMany relationship, ! - its source and destinationEntity share the same model If any of these conditions is not fulfilled the method returns an empty --- 170,176 ---- - its inverseRelationship, if any, is a toMany relationship, ! - its source and destinationEntity share the same model, ! ! - the destinationEntity has no sub-entity. If any of these conditions is not fulfilled the method returns an empty *************** *** 205,208 **** --- 207,213 ---- if srcEntity.model() != dstEntity.model(): return (sqlExpression,) + if dstEntity.subEntities(): + return (sqlExpression,) + st='\n CONSTRAINT %(relName)s FOREIGN KEY (%(FKs)s) REFERENCES %(dst_table)s(%(PKs)s)' from string import join |