Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 10 | 5 | 0.958 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 119 | src/NHibernate/Dialect/Dialect.cs |
2 | 2 | 121 | src/NHibernate/Dialect/Dialect.cs |
3 | 3 | 123 | src/NHibernate/Dialect/Dialect.cs |
4 | 2 | 111 | src/NHibernate/Dialect/MsSql2000Dialect.cs |
5 | 2 | 113 | src/NHibernate/Dialect/MsSql2000Dialect.cs |
6 | 2 | 115 | src/NHibernate/Dialect/MsSql2000Dialect.cs |
7 | 2 | 199 | src/NHibernate/Dialect/Oracle8iDialect.cs |
8 | 2 | 50 | src/NHibernate/Dialect/SQLiteDialect.cs |
9 | 2 | 52 | src/NHibernate/Dialect/SQLiteDialect.cs |
10 | 2 | 54 | src/NHibernate/Dialect/SQLiteDialect.cs |
| ||||
RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(minute from ?1)")); RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(hour from ?1)")); |
| ||||
RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(day from ?1)")); RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(month from ?1)")); |
| ||||
RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "extract(year from ?1)")); RegisterFunction("str", new SQLFunctionTemplate(NHibernateUtil.String, "cast(?1 as char)")); |
| ||||
RegisterFunction("second", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(second, ?1)")); RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(minute, ?1)")); |
| ||||
RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(hour, ?1)")); RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(day, ?1)")); |
| ||||
RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(month, ?1)")); RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "datepart(year, ?1)")); |
| ||||
RegisterFunction("locate", new SQLFunctionTemplate(NHibernateUtil.Int32, "instr(?2,?1)")); RegisterFunction("bit_length", new SQLFunctionTemplate(NHibernateUtil.Int32, "vsize(?1)*8")); |
| ||||
RegisterFunction("second", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%S\", ?1)")); RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%M\", ?1)")); |
| ||||
RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%H\", ?1)")); RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%d\", ?1)")); |
| ||||
RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%m\", ?1)")); RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%Y\", ?1)")); |
| |||
RegisterFunction( [[#variable657d1620]], new SQLFunctionTemplate(NHibernateUtil.Int32, [[#variable657d15c0]])); RegisterFunction( [[#variable7005ad60]], new SQLFunctionTemplate(NHibernateUtil. [[#variable7005b4c0]], [[#variable657d1460]])); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#657d1620]] | "year" |
1 | 2 | [[#657d1620]] | "day" |
1 | 3 | [[#657d1620]] | "minute" |
1 | 4 | [[#657d1620]] | "month" |
1 | 5 | [[#657d1620]] | "hour" |
1 | 6 | [[#657d1620]] | "second" |
1 | 7 | [[#657d1620]] | "locate" |
1 | 8 | [[#657d1620]] | "month" |
1 | 9 | [[#657d1620]] | "hour" |
1 | 10 | [[#657d1620]] | "second" |
2 | 1 | [[#657d15c0]] | "extract(year from ?1)" |
2 | 2 | [[#657d15c0]] | "extract(day from ?1)" |
2 | 3 | [[#657d15c0]] | "extract(minute from ?1)" |
2 | 4 | [[#657d15c0]] | "datepart(month, ?1)" |
2 | 5 | [[#657d15c0]] | "datepart(hour, ?1)" |
2 | 6 | [[#657d15c0]] | "datepart(second, ?1)" |
2 | 7 | [[#657d15c0]] | "instr(?2,?1)" |
2 | 8 | [[#657d15c0]] | "strftime(\"%m\", ?1)" |
2 | 9 | [[#657d15c0]] | "strftime(\"%H\", ?1)" |
2 | 10 | [[#657d15c0]] | "strftime(\"%S\", ?1)" |
3 | 1 | [[#7005ad60]] | "str" |
3 | 2 | [[#7005ad60]] | "month" |
3 | 3 | [[#7005ad60]] | "hour" |
3 | 4 | [[#7005ad60]] | "year" |
3 | 5 | [[#7005ad60]] | "day" |
3 | 6 | [[#7005ad60]] | "minute" |
3 | 7 | [[#7005ad60]] | "bit_length" |
3 | 8 | [[#7005ad60]] | "year" |
3 | 9 | [[#7005ad60]] | "day" |
3 | 10 | [[#7005ad60]] | "minute" |
4 | 1 | [[#7005b4c0]] | String |
4 | 2 | [[#7005b4c0]] | Int32 |
4 | 3 | [[#7005b4c0]] | Int32 |
4 | 4 | [[#7005b4c0]] | Int32 |
4 | 5 | [[#7005b4c0]] | Int32 |
4 | 6 | [[#7005b4c0]] | Int32 |
4 | 7 | [[#7005b4c0]] | Int32 |
4 | 8 | [[#7005b4c0]] | Int32 |
4 | 9 | [[#7005b4c0]] | Int32 |
4 | 10 | [[#7005b4c0]] | Int32 |
5 | 1 | [[#657d1460]] | "cast(?1 as char)" |
5 | 2 | [[#657d1460]] | "extract(month from ?1)" |
5 | 3 | [[#657d1460]] | "extract(hour from ?1)" |
5 | 4 | [[#657d1460]] | "datepart(year, ?1)" |
5 | 5 | [[#657d1460]] | "datepart(day, ?1)" |
5 | 6 | [[#657d1460]] | "datepart(minute, ?1)" |
5 | 7 | [[#657d1460]] | "vsize(?1)*8" |
5 | 8 | [[#657d1460]] | "strftime(\"%Y\", ?1)" |
5 | 9 | [[#657d1460]] | "strftime(\"%d\", ?1)" |
5 | 10 | [[#657d1460]] | "strftime(\"%M\", ?1)" |