Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 4 | 1 | 0.988 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 767 | src/NHibernate.Test/HQL/HQLFunctions.cs |
2 | 4 | 789 | src/NHibernate.Test/HQL/HQLFunctions.cs |
3 | 4 | 843 | src/NHibernate.Test/HQL/HQLFunctions.cs |
4 | 4 | 857 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| ||||
using (ISession s = OpenSession()) { string hql = "select current_timestamp() from Animal"; IList result = s.CreateQuery(hql).List(); } |
| ||||
using (ISession s = OpenSession()) { string hql = "select current_timestamp_offset() from Animal"; IList result = s.CreateQuery(hql).List(); } |
| ||||
// test only the parser and render using (ISession s = OpenSession()) { string hql = "select second(current_timestamp()), minute(current_timestamp()), hour(current_timestamp()) from Animal"; IList result = s.CreateQuery(hql).List(); } |
| ||||
// test only the parser and render using (ISession s = OpenSession()) { string hql = "select day(h.Birthdate), month(h.Birthdate), year(h.Birthdate) from Human h"; IList result = s.CreateQuery(hql).List(); } |
| |||
// test only the parser and render using (ISession s = OpenSession()) { string hql = [[#variable27611080]]; IList result = s.CreateQuery(hql).List(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27611080]] | "select current_timestamp() from Animal" |
1 | 2 | [[#27611080]] | "select current_timestamp_offset() from Animal" |
1 | 3 | [[#27611080]] | "select second(current_timestamp()), minute(current_timestamp()), hour(current_timestamp()) from Animal" |
1 | 4 | [[#27611080]] | "select day(h.Birthdate), month(h.Birthdate), year(h.Birthdate) from Human h" |