Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.986 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 488 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
2 | 8 | 599 | src/NHibernate.Test/HQL/Ast/BulkManipulation.cs |
| ||||
if ( ! (Dialect is MySQLDialect)) { // MySQL does not support (even un-correlated) subqueries against the update-mutating table s.CreateQuery("update Animal a set a.mother = (from Animal where id = 1) where a.id = 2").ExecuteUpdate(); } t.Commit(); s.Close(); |
| ||||
if ( ! (Dialect is MySQLDialect)) { // MySQL does not support (even un-correlated) subqueries against the update-mutating table s.CreateQuery("update Animal set bodyWeight = ( select max(bodyWeight) from Animal )").ExecuteUpdate(); } t.Commit(); s.Close(); |
| |||
if ( !(Dialect is MySQLDialect)) { // MySQL does not support (even un-correlated) subqueries against the update-mutating table s.CreateQuery( [[#variable6fee18e0]]).ExecuteUpdate(); } t.Commit(); s.Close(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fee18e0]] | "update Animal a set a.mother = (from Animal where id = 1) where a.id = 2" |
1 | 2 | [[#6fee18e0]] | "update Animal set bodyWeight = ( select max(bodyWeight) from Animal )" |