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) }; | |
See real code fragment | See real code fragment |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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.0 |
Clone type | Type 2 |
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.getAddUniqueConstraintSQL(tableName, constraintName, columns, qualifier, prefs, this)}; |
Row | Violation |
---|---|
1 | 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 |
2 | 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 |