CloneSet1276


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11063
src/NHibernate/SqlCommand/Alias.cs
21096
src/NHibernate/SqlCommand/Alias.cs
Clone Instance
1
Line Count
10
Source Line
63
Source File
src/NHibernate/SqlCommand/Alias.cs

                        // Oracle doesn't like underscores at the start of identifiers (NH-320).
                        // It should be safe to trim them here, because the aliases are postfixed
                        // with a unique number anyway, so they won't collide.
                        unquoted = unquoted.TrimStart('_');

                        if (unquoted.Length > length)
                        {
                                unquoted = unquoted.Substring(0, length);
                        }

                        if (suffix != null)
                        {
                                unquoted += suffix;
                        }


Clone Instance
2
Line Count
10
Source Line
96
Source File
src/NHibernate/SqlCommand/Alias.cs

                        // See comment in ToAliasString above
                        unquoted = unquoted.TrimStart('_');

                        if (unquoted.Length > length)
                        {
                                unquoted = unquoted.Substring(0, length);
                        }

                        if (suffix != null)
                        {
                                unquoted += suffix;
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

// See comment in ToAliasString above
// Oracle doesn't like underscores at the start of identifiers (NH-320).
// It should be safe to trim them here, because the aliases are postfixed
// with a unique number anyway, so they won't collide.
unquoted = unquoted.TrimStart('_');
if (unquoted.Length > length)
{
   unquoted = unquoted.Substring(0, length);
}
if (suffix != null)
{
   unquoted += suffix;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None