File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/SybaseDialectExt.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InformixDialectExt.java | |||
Method name: String[] getUpdateSQL(String, String[], String[], String[], String[], String[], DatabaseObjectQualifier, SqlGenerationPreferences)
|
Method name: String[] getUpdateSQL(String, String[], String[], String[], String[], String[], DatabaseObjectQualifier, SqlGenerationPreferences)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | String templateStr = "";↵ | 1 | String templateStr = "";↵ | |
2 | ↵ | 2 | ↵ | |
3 | if (fromTables != null) {↵ | 3 | if (fromTables != null) {↵ | |
4 | templateStr = ST_UPDATE_CORRELATED_QUERY_STYLE_TWO;↵ | 4 | templateStr = ST_UPDATE_CORRELATED_QUERY_STYLE_TWO;↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | templateStr = ST_UPDATE_STYLE_ONE;↵ | 6 | templateStr = ST_UPDATE_STYLE_ONE;↵ | |
7 | }↵ | 7 | }↵ | |
8 | ↵ | 8 | ↵ | |
9 | StringTemplate st = new StringTemplate(templateStr);↵ | 9 | StringTemplate st = new StringTemplate(templateStr);↵ | |
10 | ↵ | |||
11 | return DialectUtils.getUpdateSQL(st,↵ | 10 | return DialectUtils.getUpdateSQL(st,↵ | |
12 | tableName,↵ | 11 | tableName,↵ | |
13 | setColumns,↵ | 12 | setColumns,↵ | |
14 | setValues,↵ | 13 | setValues,↵ | |
15 | fromTables,↵ | 14 | fromTables,↵ | |
16 | whereColumns,↵ | 15 | whereColumns,↵ | |
17 | whereValues,↵ | 16 | whereValues,↵ | |
18 | qualifier,↵ | 17 | qualifier,↵ | |
19 | prefs,↵ | 18 | prefs,↵ | |
20 | this); | 19 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 6 |
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) | 3.9 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | String templateStr = ""; | 1 | String templateStr = ""; | |
2 | if (fromTables != null) | 2 | if (fromTables != null) | |
3 | templateStr = ST_UPDATE_CORRELATED_QUERY_STYLE_TWO; | 3 | templateStr = ST_UPDATE_CORRELATED_QUERY_STYLE_TWO; | |
else | else | |||
4 | templateStr = ST_UPDATE_STYLE_ONE; | 4 | templateStr = ST_UPDATE_STYLE_ONE; | |
5 | StringTemplate st = new StringTemplate(templateStr); | 5 | StringTemplate st = new StringTemplate(templateStr); | |
6 | return DialectUtils.getUpdateSQL(st, tableName, setColumns, setValues, fromTables, whereColumns, whereValues, qualifier, prefs, this); | 6 | return DialectUtils.getUpdateSQL(st, tableName, setColumns, setValues, fromTables, whereColumns, whereValues, qualifier, prefs, this); |
Row | Violation |
---|