Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.986 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 2742 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 13 | 2763 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
if (IsClassicParser) { list = s.CreateQuery( "select foo from foo in class NHibernate.DomainModel.Foo, baz in class NHibernate.DomainModel.Baz where foo in baz.FooArray.elements and 3 = some baz.IntArray.elements and 4 > all baz.IntArray.indices"). List(); } else { list = s.CreateQuery( "select foo from foo in class NHibernate.DomainModel.Foo, baz in class NHibernate.DomainModel.Baz where foo in elements(baz.FooArray) and 3 = some elements(baz.IntArray) and 4 > all indices(baz.IntArray)"). List(); } Assert.AreEqual(2, list.Count, "collection.elements find"); |
| ||||
// sapdb doesn't like distinct with binary type //if( !(dialect is Dialect.SAPDBDialect) ) //{ if (IsClassicParser) { list = s.CreateQuery("select distinct foo from baz in class NHibernate.DomainModel.Baz, foo in baz.FooArray.elements").List(); } else { list = s.CreateQuery("select distinct foo from baz in class NHibernate.DomainModel.Baz, foo in elements(baz.FooArray)"). List(); } Assert.AreEqual(2, list.Count, "collection.elements find"); |
| |||
// sapdb doesn't like distinct with binary type //if( !(dialect is Dialect.SAPDBDialect) ) //{ if (IsClassicParser) { list = s.CreateQuery( [[#variable58708580]]).List(); } else { list = s.CreateQuery( [[#variable587093e0]]).List(); } Assert.AreEqual(2, list.Count, "collection.elements find"); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58708580]] | "select foo from foo in class NHibernate.DomainModel.Foo, baz in class NHibernate.DomainModel.Baz where foo in baz.FooArray.elements and 3 = some baz.IntArray.elements and 4 > all baz.IntArray.indices" |
1 | 2 | [[#58708580]] | "select distinct foo from baz in class NHibernate.DomainModel.Baz, foo in baz.FooArray.elements" |
2 | 1 | [[#587093e0]] | "select foo from foo in class NHibernate.DomainModel.Foo, baz in class NHibernate.DomainModel.Baz where foo in elements(baz.FooArray) and 3 = some elements(baz.IntArray) and 4 > all indices(baz.IntArray)" |
2 | 2 | [[#587093e0]] | "select distinct foo from baz in class NHibernate.DomainModel.Baz, foo in elements(baz.FooArray)" |