[Modeling-cvs] ProjectModeling/Modeling/tests test_EditingContext_ParentChild.py,1.13,1.14
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-08-22 03:32:01
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv14702/Modeling/tests Modified Files: test_EditingContext_ParentChild.py Log Message: Added Oracle to the list of supported db Index: test_EditingContext_ParentChild.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_ParentChild.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** test_EditingContext_ParentChild.py 28 Jul 2003 06:04:47 -0000 1.13 --- test_EditingContext_ParentChild.py 20 Aug 2003 20:41:59 -0000 1.14 *************** *** 609,613 **** -h Prints this message -p enables profiling ! -d sets the database adaptor to use: Postgresql (default),MySQL or SQLite -r reinitialize the (postgresql) database the database defined in the model 'model_testBothSidesRels' --- 609,614 ---- -h Prints this message -p enables profiling ! -d sets the database adaptor to use: Postgresql (default),MySQL, Oracle ! or SQLite -r reinitialize the (postgresql) database the database defined in the model 'model_testBothSidesRels' *************** *** 639,643 **** if k=='-p': profile=1; continue if k=='-d': ! if v not in ('Postgresql', 'MySQL', 'SQLite'): usage(me, 1) database_cfg='%s.cfg'%v continue --- 640,644 ---- if k=='-p': profile=1; continue if k=='-d': ! if v not in ('Postgresql', 'MySQL', 'Oracle', 'SQLite'): usage(me, 1) database_cfg='%s.cfg'%v continue *************** *** 658,666 **** store_employee_model.entityNamed('Holidays').attributeNamed('endDate').setExternalType('DATETIME') utils.enable_model_cache_and_compute() if reinitDB_flag: from test_EditingContext_Global import reinitDB ! reinitDB() return --- 659,671 ---- store_employee_model.entityNamed('Holidays').attributeNamed('endDate').setExternalType('DATETIME') + # Oracle specifics: change TIMESTAMP to DATE + if database_cfg=='Oracle.cfg': + author_books_model.entityNamed('Writer').attributeNamed('birthday').setExternalType('DATE') + utils.enable_model_cache_and_compute() if reinitDB_flag: from test_EditingContext_Global import reinitDB ! reinitDB(database_cfg) return |