Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 3 | 0.974 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 97 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
2 | 8 | 121 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
3 | 8 | 147 | 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(); |
| ||||
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(); |
| ||||
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(); |
| |||
Assert.Throws<QueryException> (() => s.CreateQuery( [[#variable277f2e60]]).ExecuteUpdate(), [[#variable29584760]]); t.Commit(); t = s.BeginTransaction(); s.CreateQuery( [[#variable29584740]]).ExecuteUpdate(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#277f2e60]] | "insert into Pickup (Owner, Vin, id) select id, Vin, Owner from Car" |
1 | 2 | [[#277f2e60]] | "insert into Human (id, bodyWeight) select id, bodyWeight from Lizard" |
1 | 3 | [[#277f2e60]] | "insert into Joiner (name, joinedName) select vin, owner from Car" |
2 | 1 | [[#29584760]] | "mismatched types did not error" |
2 | 2 | [[#29584760]] | "superclass prop insertion did not error" |
2 | 3 | [[#29584760]] | "mapped-join insertion did not error" |
3 | 1 | [[#29584740]] | "delete Vehicle" |
3 | 2 | [[#29584740]] | "delete Animal where mother is not null" |
3 | 3 | [[#29584740]] | "delete Joiner" |