CloneSet1260


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.972statement_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
164866
src/NHibernate.Test/Legacy/FooBarTest.cs
254893
src/NHibernate.Test/Legacy/FooBarTest.cs
Clone Instance
1
Line Count
6
Source Line
4866
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        IDbCommand cmd = s.Connection.CreateCommand();
                        cmd.CommandText = "update " + Dialect.QuoteForTableName("foos") + " set long_ = -3";
                        cmd.ExecuteNonQuery();

                        s.Refresh(foo);
                        Assert.AreEqual((long) - 3, foo.Long);


Clone Instance
2
Line Count
5
Source Line
4893
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        /* 
                        Commented to have same behavior of H3.2 (test named FooBarTest.testRefresh())
                        s.Close(); 
                        s = OpenSession();
                        btw using close and open a new session more than Transient the entity will be detached.
                        */
                        IDbCommand cmd = s.Connection.CreateCommand();
                        cmd.CommandText = "update " + Dialect.QuoteForTableName("foos") + " set long_ = -3";
                        cmd.ExecuteNonQuery();
                        s.Refresh(foo);
                        Assert.AreEqual( - 3L, foo.Long);


Clone AbstractionParameter Count: 1Parameter Bindings

/* 
                        Commented to have same behavior of H3.2 (test named FooBarTest.testRefresh())
                        s.Close(); 
                        s = OpenSession();
                        btw using close and open a new session more than Transient the entity will be detached.
                        */
IDbCommand cmd = s.Connection.CreateCommand();
cmd.CommandText = "update " + Dialect.QuoteForTableName("foos") + " set long_ = -3";
cmd.ExecuteNonQuery();
s.Refresh(foo);
Assert.AreEqual( [[#variable2bf66860]], foo.Long);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2bf66860]]
(long) - 3 
12[[#2bf66860]]
- 3L