prefs.setQuoteColumnNames(false); prefs.setQuoteConstraintNames(false); return new String[] { DialectUtils.getAddIndexSQL(pkName, true, columns, qualifier, prefs, this), DialectUtils.getAddPrimaryKeySQL(ti, pkName, columns, true, qualifier, prefs, this) };
prefs.setQuoteConstraintNames(false); prefs.setQuoteColumnNames(false); return new String[] { DialectUtils.getAddUniqueConstraintSQL(tableName, constraintName, columns, qualifier, prefs, this) };
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InformixDialectExt.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/OracleDialectExt.java
Method name: String[] getAddPrimaryKeySQL(String, TableColumnInfo[], ITableInfo, DatabaseObjectQualifier, SqlGenerationPreferences) Method name: String[] getAddUniqueConstraintSQL(String, String, TableColumnInfo[], DatabaseObjectQualifier, SqlGenerationPreferences)
Number of AST nodes: 3 Number of AST nodes: 3
1
prefs.setQuoteColumnNames(false);
1
prefs.setQuoteConstraintNames(false);
2
		prefs.setQuoteConstraintNames(false);
2
		prefs.setQuoteColumnNames(false);
3
		
3
		
4
		return new String[] { DialectUtils.getAddIndexSQL(pkName, true, columns, qualifier, prefs, this),
4
		return new String[] { DialectUtils.getAddUniqueConstraintSQL(tableName,
5
				DialectUtils.getAddPrimaryKeySQL(ti, pkName, 
5
			constraintName,
6
columns, true, 
6
			columns,
7
qualifier, 
7
			qualifier,
8
prefs, 
8
			prefs,
9
this) };
9
			this) };
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    prefs.setQuoteColumnNames(false);
    2
    prefs.setQuoteColumnNames(false);
    2
    prefs.setQuoteConstraintNames(false);
    1
    prefs.setQuoteConstraintNames(false);
    3
    return new String[] {DialectUtils.getAddIndexSQL(pkName, true, columns, qualifier, prefs, this), DialectUtils.getAddPrimaryKeySQL(ti, pkName, columns, true, qualifier, prefs, this)};
    3
    return new String[] {DialectUtils.getAddIndexSQL(pkName, true, columns, qualifier, prefs, this), DialectUtils.getAddPrimaryKeySQL(ti, pkName, columns, true, qualifier, prefs, this)};
    3
    return new String[] {DialectUtils.getAddUniqueConstraintSQL(tableName, constraintName, columns, qualifier, prefs, this)};
    Differences
    Expression1Expression2Difference
    {DialectUtils.getAddIndexSQL(pkName,true,columns,qualifier,prefs,this),DialectUtils.getAddPrimaryKeySQL(ti,pkName,columns,true,qualifier,prefs,this)}{DialectUtils.getAddUniqueConstraintSQL(tableName,constraintName,columns,qualifier,prefs,this)}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    {DialectUtils.getAddIndexSQL(pkName,true,columns,qualifier,prefs,this),DialectUtils.getAddPrimaryKeySQL(ti,pkName,columns,true,qualifier,prefs,this)}{DialectUtils.getAddUniqueConstraintSQL(tableName,constraintName,columns,qualifier,prefs,this)}ARRAY_INITIALIZER_MISMATCH
    Preondition Violations
    Expression new String[]{DialectUtils.getAddIndexSQL(pkName,true,columns,qualifier,prefs,this),DialectUtils.getAddPrimaryKeySQL(ti,pkName,columns,true,qualifier,prefs,this)} cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression new String[]{DialectUtils.getAddUniqueConstraintSQL(tableName,constraintName,columns,qualifier,prefs,this)} cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    return new String[] {DialectUtils.getAddUniqueConstraintSQL(tableName, constraintName, columns, qualifier, prefs, this)};
    Precondition Violations (2)
    Row Violation
    1Expression new String[]{DialectUtils.getAddIndexSQL(pkName,true,columns,qualifier,prefs,this),DialectUtils.getAddPrimaryKeySQL(ti,pkName,columns,true,qualifier,prefs,this)} cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression new String[]{DialectUtils.getAddUniqueConstraintSQL(tableName,constraintName,columns,qualifier,prefs,this)} cannot be parameterized, because it has dependencies to/from statements that will be extracted