CloneSet921


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8330.974statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1897
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs
28121
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs
38147
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs
Clone Instance
1
Line Count
8
Source Line
97
Source File
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs

                        Assert.Throws<QueryException> (
                          () => s.CreateQuery("insert into Pickup (Owner, Vin, id) select id, Vin, Owner from Car").ExecuteUpdate(),
                                "mismatched types did not error");

                        t.Commit();
                        t = s.BeginTransaction();

                        s.CreateQuery("delete Vehicle").ExecuteUpdate();


Clone Instance
2
Line Count
8
Source Line
121
Source File
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs

                        Assert.Throws<QueryException> (
                                () => s.CreateQuery("insert into Human (id, bodyWeight) select id, bodyWeight from Lizard").ExecuteUpdate(),
                                "superclass prop insertion did not error");

                        t.Commit();
                        t = s.BeginTransaction();

                        s.CreateQuery("delete Animal where mother is not null").ExecuteUpdate();


Clone Instance
3
Line Count
8
Source Line
147
Source File
src/NHibernate.Test/HQL/Ast/BulkManipulation.cs

                        Assert.Throws<QueryException> (
                                () => s.CreateQuery("insert into Joiner (name, joinedName) select vin, owner from Car").ExecuteUpdate(),
                                "mapped-join insertion did not error");

                        t.Commit();
                        t = s.BeginTransaction();

                        s.CreateQuery("delete Joiner").ExecuteUpdate();


Clone AbstractionParameter Count: 3Parameter Bindings

Assert.Throws<QueryException> (() => s.CreateQuery( [[#variable277f2e60]]).ExecuteUpdate(), [[#variable29584760]]);
t.Commit();
t = s.BeginTransaction();
s.CreateQuery( [[#variable29584740]]).ExecuteUpdate();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#277f2e60]]
"insert into Pickup (Owner, Vin, id) select id, Vin, Owner from Car" 
12[[#277f2e60]]
"insert into Human (id, bodyWeight) select id, bodyWeight from Lizard" 
13[[#277f2e60]]
"insert into Joiner (name, joinedName) select vin, owner from Car" 
21[[#29584760]]
"mismatched types did not error" 
22[[#29584760]]
"superclass prop insertion did not error" 
23[[#29584760]]
"mapped-join insertion did not error" 
31[[#29584740]]
"delete Vehicle" 
32[[#29584740]]
"delete Animal where mother is not null" 
33[[#29584740]]
"delete Joiner"