if ( DB2Dialect.class.isInstance( getDialect() ) ) {
// https://issues.apache.org/jira/browse/DERBY-1624
reportSkip( "Dialect does not support physical column name in order-by clause after it is aliased", testDescription );
return false;
}
return true;
if ( DerbyDialect.class.isInstance( getDialect() ) ) {
// https://issues.apache.org/jira/browse/DERBY-1624
reportSkip( "Dialect does not support physical column name in having clause after it is aliased", testDescription );
return false;
}
return true;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testing/src/main/java/org/hibernate/junit/functional/FunctionalTestCase.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testing/src/main/java/org/hibernate/junit/functional/FunctionalTestCase.java
|
Method name: boolean allowsPhysicalColumnNameInOrderby(String)
|
|
Method name: boolean allowsPhysicalColumnNameInHaving(String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if ( DB2Dialect.class.isInstance( getDialect() ) ) {↵ | | 1 | if ( DerbyDialect.class.isInstance( getDialect() ) ) {↵
|
2 | // https://issues.apache.org/jira/browse/DERBY-1624↵ | | 2 | // https://issues.apache.org/jira/browse/DERBY-1624↵
|
3 | reportSkip( "Dialect does not support physical column name in order-by clause after it is aliased", testDescription );↵ | | 3 | reportSkip( "Dialect does not support physical column name in having clause after it is aliased", testDescription );↵
|
4 | return false;↵ | | 4 | return false;↵
|
5 | }↵ | | 5 | }↵
|
6 | return true; | | 6 | return true;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.4 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | if (DB2Dialect.class.isInstance(getDialect())) | | 1 | if (DerbyDialect.class.isInstance(getDialect())) |
2 | reportSkip("Dialect does not support physical column name in order-by clause after it is aliased", testDescription); | | 2 | reportSkip("Dialect does not support physical column name in having clause after it is aliased", testDescription); |
3 | | | 3 | |
4 | return true; | | 4 | return true; |
Precondition Violations (0)
Row |
Violation |