File path: /sql12/plugins/postgres/src/net/sourceforge/squirrel_sql/plugins/postgres/exp/PostgresTableIndexExtractorImpl.java | File path: /sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/expander/MysqlTableTriggerExtractorImpl.java | |||
Method name: void bindParamters(PreparedStatement, IDatabaseObjectInfo)
|
Method name: void bindParamters(PreparedStatement, IDatabaseObjectInfo)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (s_log.isDebugEnabled()) {↵ | 1 | if (s_log.isDebugEnabled()) {↵ | |
2 | s_log.debug("Binding schema name "+dbo.getSchemaName()+↵ | 2 | s_log.debug("Binding catalog name "+dbo.getCatalogName()+↵ | |
3 | " as first bind value");↵ | 3 | " as first bind value");↵ | |
4 | s_log.debug("Binding table name "+dbo.getSimpleName()+↵ | 4 | s_log.debug("Binding table name "+dbo.getSimpleName()+↵ | |
5 | " as second bind value"); ↵ | 5 | " as second bind value"); ↵ | |
6 | } ↵ | 6 | }↵ | |
7 | pstmt.setString(1, dbo.getSchemaName());↵ | 7 | pstmt.setString(1, dbo.getCatalogName());↵ | |
8 | pstmt.setString(2, dbo.getSimpleName()); | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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) | 71.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (s_log.isDebugEnabled()) | 1 | if (s_log.isDebugEnabled()) | ||||||||||||||
2 | s_log.debug("Binding schema name " + dbo.getSchemaName() + " as first bind value"); |
| 2 | s_log.debug("Binding catalog name " + dbo.getCatalogName() + " as first bind value"); | |||||||||||||
3 | s_log.debug("Binding table name " + dbo.getSimpleName() + " as second bind value"); | 3 | s_log.debug("Binding table name " + dbo.getSimpleName() + " as second bind value"); | ||||||||||||||
4 | pstmt.setString(1, dbo.getSchemaName()); |
| 4 | pstmt.setString(1, dbo.getCatalogName()); | |||||||||||||
5 | pstmt.setString(2, dbo.getSimpleName()); | 5 | pstmt.setString(2, dbo.getSimpleName()); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.postgres.exp.PostgresTableIndexExtractorImpl and net.sourceforge.squirrel_sql.plugins.mysql.expander.MysqlTableTriggerExtractorImpl do not have a common superclass |