CloneSet504


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17310.994statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1171984
src/NHibernate/Dialect/Dialect.cs
2172016
src/NHibernate/Dialect/Dialect.cs
31721
src/NHibernate/Dialect/Function/ClassicAvgFunction.cs
Clone Instance
1
Line Count
17
Source Line
1984
Source File
src/NHibernate/Dialect/Dialect.cs

                                if (columnType == null)
                                {
                                        throw new ArgumentNullException("columnType");
                                }
                                SqlType[] sqlTypes;
                                try
                                {
                                        sqlTypes = columnType.SqlTypes(mapping);
                                }
                                catch (MappingException me)
                                {
                                        throw new QueryException(me);
                                }

                                if (sqlTypes.Length != 1)
                                {
                                        throw new QueryException("multi-column type can not be in avg()");
                                }


Clone Instance
2
Line Count
17
Source Line
2016
Source File
src/NHibernate/Dialect/Dialect.cs

                                if (columnType == null)
                                {
                                        throw new ArgumentNullException("columnType");
                                }
                                SqlType[] sqlTypes;
                                try
                                {
                                        sqlTypes = columnType.SqlTypes(mapping);
                                }
                                catch (MappingException me)
                                {
                                        throw new QueryException(me);
                                }

                                if (sqlTypes.Length != 1)
                                {
                                        throw new QueryException("multi-column type can not be in sum()");
                                }


Clone Instance
3
Line Count
17
Source Line
21
Source File
src/NHibernate/Dialect/Function/ClassicAvgFunction.cs

                        if (columnType == null)
                        {
                                throw new ArgumentNullException("columnType");
                        }
                        SqlType[] sqlTypes;
                        try
                        {
                                sqlTypes = columnType.SqlTypes(mapping);
                        }
                        catch (MappingException me)
                        {
                                throw new QueryException(me);
                        }

                        if (sqlTypes.Length != 1)
                        {
                                throw new QueryException("multi-column type can not be in avg()");
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

if (columnType == null)
{
   throw new ArgumentNullException("columnType");
}
SqlType[] sqlTypes;
try
{
   sqlTypes = columnType.SqlTypes(mapping);
}
catch (MappingException me)
{
   throw new QueryException(me);
}
if (sqlTypes.Length != 1)
{
   throw new QueryException( [[#variable54a7c4a0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54a7c4a0]]
"multi-column type can not be in sum()" 
12[[#54a7c4a0]]
"multi-column type can not be in avg()" 
13[[#54a7c4a0]]
"multi-column type can not be in avg()"