Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337196 - [DB] Use qualified table names in DB tests
Summary: [DB] Use qualified table names in DB tests
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.db (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Caspar D. CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 337180
Blocks:
  Show dependency tree
 
Reported: 2011-02-15 05:48 EST by Caspar D. CLA
Modified: 2011-06-23 03:41 EDT (History)
1 user (show)

See Also:
stepper: review+


Attachments
Patch (6.76 KB, patch)
2011-02-15 06:06 EST, Caspar D. CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caspar D. CLA 2011-02-15 05:48:20 EST
This is just a matter of passing a key-value pair into the mappingStrategy
during setup. The advantage of qualified names is that we won't have to 
drop the database if some tests use dynamic packages whose elements' names
(and therefore the corresponding table names) collide.

This is in the same spirit as bug 337180 (but at the meta level instead of
the data level), and with the same goal: prepare the ground for a (hopefully)
significant performance improvement in test execution.

(I realize that here and there some test logic will have to be changed, 
particularly test-logic that has hardcoded the expected table name. This
stuff will have to be prefixed with "packageName_".)

Working on a patch.
Comment 1 Caspar D. CLA 2011-02-15 06:06:24 EST
Created attachment 188984 [details]
Patch
Comment 2 Eike Stepper CLA 2011-02-15 11:48:48 EST
I can not test it as the patch depends on bug 337180. But the code looks good. Go ahead...
Comment 3 Caspar D. CLA 2011-02-15 22:34:37 EST
Committed to trunk, rev. 7088

Note: I missed one file in the patch (SQLQueryTest.java), but I
included in the commit.
Comment 4 Eike Stepper CLA 2011-06-23 03:41:38 EDT
Available in R20110608-1407