Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
1 | 7 | 3 | 0.957 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 1 | 114 | src/NHibernate/Dialect/Dialect.cs |
2 | 1 | 115 | src/NHibernate/Dialect/Dialect.cs |
3 | 1 | 75 | src/NHibernate/Dialect/InformixDialect.cs |
4 | 1 | 76 | src/NHibernate/Dialect/InformixDialect.cs |
5 | 1 | 77 | src/NHibernate/Dialect/InformixDialect.cs |
6 | 1 | 78 | src/NHibernate/Dialect/InformixDialect.cs |
7 | 1 | 110 | src/NHibernate/Dialect/MsSql2000Dialect.cs |
| ||||
// the syntax of current_timestamp is extracted from H3.2 tests // - test\hql\ASTParserLoadingTest.java // - test\org\hibernate\test\hql\HQLTest.java RegisterFunction("current_timestamp", new NoArgSQLFunction("current_timestamp", NHibernateUtil.DateTime, true)); |
| ||||
RegisterFunction("sysdate", new NoArgSQLFunction("sysdate", NHibernateUtil.DateTime, false)); |
| ||||
// RegisterFunction("abs", new StandardSQLFunction("abs")); // RegisterFunction("mod", new StandardSQLFunction("mod", NHibernateUtil.Int32)); // RegisterFunction("sqrt", new StandardSQLFunction("sqrt", NHibernateUtil.Double)); // RegisterFunction("upper", new StandardSQLFunction("upper")); // RegisterFunction("lower", new StandardSQLFunction("lower")); // RegisterFunction("cast", new CastFunction()); // RegisterFunction("concat", new VarArgsSQLFunction(NHibernateUtil.String, "(", "||", ")")); RegisterFunction("current_timestamp", new NoArgSQLFunction("current", NHibernateUtil.DateTime, false)); |
| ||||
RegisterFunction("sysdate", new NoArgSQLFunction("today", NHibernateUtil.DateTime, false)); |
| ||||
RegisterFunction("current", new NoArgSQLFunction("current", NHibernateUtil.DateTime, false)); |
| ||||
RegisterFunction("today", new NoArgSQLFunction("today", NHibernateUtil.DateTime, false)); |
| ||||
RegisterFunction("current_timestamp", new NoArgSQLFunction("getdate", NHibernateUtil.DateTime, true)); |
| |||
// RegisterFunction("abs", new StandardSQLFunction("abs")); // RegisterFunction("mod", new StandardSQLFunction("mod", NHibernateUtil.Int32)); // RegisterFunction("sqrt", new StandardSQLFunction("sqrt", NHibernateUtil.Double)); // RegisterFunction("upper", new StandardSQLFunction("upper")); // RegisterFunction("lower", new StandardSQLFunction("lower")); // RegisterFunction("cast", new CastFunction()); // RegisterFunction("concat", new VarArgsSQLFunction(NHibernateUtil.String, "(", "||", ")")); // the syntax of current_timestamp is extracted from H3.2 tests // - test\hql\ASTParserLoadingTest.java // - test\org\hibernate\test\hql\HQLTest.java RegisterFunction( [[#variable6c783e80]], new NoArgSQLFunction( [[#variable6c783de0]], NHibernateUtil.DateTime, [[#variable6c783d60]])); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6c783e80]] | "current_timestamp" |
1 | 2 | [[#6c783e80]] | "current_timestamp" |
1 | 3 | [[#6c783e80]] | "sysdate" |
1 | 4 | [[#6c783e80]] | "current" |
1 | 5 | [[#6c783e80]] | "today" |
1 | 6 | [[#6c783e80]] | "current_timestamp" |
1 | 7 | [[#6c783e80]] | "sysdate" |
2 | 1 | [[#6c783de0]] | "getdate" |
2 | 2 | [[#6c783de0]] | "current" |
2 | 3 | [[#6c783de0]] | "today" |
2 | 4 | [[#6c783de0]] | "current" |
2 | 5 | [[#6c783de0]] | "today" |
2 | 6 | [[#6c783de0]] | "current_timestamp" |
2 | 7 | [[#6c783de0]] | "sysdate" |
3 | 1 | [[#6c783d60]] | true |
3 | 2 | [[#6c783d60]] | false |
3 | 3 | [[#6c783d60]] | false |
3 | 4 | [[#6c783d60]] | false |
3 | 5 | [[#6c783d60]] | false |
3 | 6 | [[#6c783d60]] | true |
3 | 7 | [[#6c783d60]] | false |