Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 5 | 0.974 | statement_list[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 14 | src/NHibernate.Test/DialectTest/SqlCEDialectFixture.cs |
2 | 8 | 33 | src/NHibernate.Test/MappingTest/ColumnFixture.cs |
| ||||
SimpleValue sv = new SimpleValue(); sv.TypeName = NHibernateUtil.BinaryBlob.Name; Column column = new Column(); column.Value = sv; // no length, should produce maximum Assert.AreEqual("VARBINARY(8000)", column.GetSqlType(dialect, null)); // maximum varbinary length is 8000 column.Length = 8000; Assert.AreEqual("VARBINARY(8000)", column.GetSqlType(dialect, null)); |
| ||||
SimpleValue sv = new SimpleValue(); sv.TypeName = NHibernateUtil.String.Name; Column column = new Column(); column.Value = sv; Assert.AreEqual("NVARCHAR(255)", column.GetSqlType(_dialect, null)); column.Length = 100; Assert.AreEqual("NVARCHAR(100)", column.GetSqlType(_dialect, null)); |
| |||
SimpleValue sv = new SimpleValue(); sv.TypeName = NHibernateUtil. [[#variable51c1ac20]].Name; Column column = new Column(); column.Value = sv; // no length, should produce maximum Assert.AreEqual( [[#variable51c1b240]], column.GetSqlType( [[#variable51c1a1c0]], null)); // maximum varbinary length is 8000 column.Length = [[#variable50896f00]]; Assert.AreEqual( [[#variable51c1bec0]], column.GetSqlType( [[#variable51c1a1c0]], null)); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#51c1ac20]] | BinaryBlob |
1 | 2 | [[#51c1ac20]] | String |
2 | 1 | [[#51c1b240]] | "VARBINARY(8000)" |
2 | 2 | [[#51c1b240]] | "NVARCHAR(255)" |
3 | 1 | [[#51c1a1c0]] | dialect |
3 | 2 | [[#51c1a1c0]] | _dialect |
4 | 1 | [[#50896f00]] | 8000 |
4 | 2 | [[#50896f00]] | 100 |
5 | 1 | [[#51c1bec0]] | "VARBINARY(8000)" |
5 | 2 | [[#51c1bec0]] | "NVARCHAR(100)" |