CloneSet570


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
1730.957non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11114
src/NHibernate/Dialect/Dialect.cs
21115
src/NHibernate/Dialect/Dialect.cs
3175
src/NHibernate/Dialect/InformixDialect.cs
4176
src/NHibernate/Dialect/InformixDialect.cs
5177
src/NHibernate/Dialect/InformixDialect.cs
6178
src/NHibernate/Dialect/InformixDialect.cs
71110
src/NHibernate/Dialect/MsSql2000Dialect.cs
Clone Instance
1
Line Count
1
Source Line
114
Source File
src/NHibernate/Dialect/Dialect.cs

                        // the syntax of current_timestamp is extracted from H3.2 tests 
                        // - test\hql\ASTParserLoadingTest.java
                        // - test\org\hibernate\test\hql\HQLTest.java
                        RegisterFunction("current_timestamp", new NoArgSQLFunction("current_timestamp", NHibernateUtil.DateTime, true));


Clone Instance
2
Line Count
1
Source Line
115
Source File
src/NHibernate/Dialect/Dialect.cs

                        RegisterFunction("sysdate", new NoArgSQLFunction("sysdate", NHibernateUtil.DateTime, false));


Clone Instance
3
Line Count
1
Source Line
75
Source File
src/NHibernate/Dialect/InformixDialect.cs

                        //                      RegisterFunction("abs", new StandardSQLFunction("abs")); 
                        //                      RegisterFunction("mod", new StandardSQLFunction("mod", NHibernateUtil.Int32));
                        //                      RegisterFunction("sqrt", new StandardSQLFunction("sqrt", NHibernateUtil.Double));
                        //                      RegisterFunction("upper", new StandardSQLFunction("upper"));
                        //                      RegisterFunction("lower", new StandardSQLFunction("lower"));
                        //                      RegisterFunction("cast", new CastFunction());
                        //                      RegisterFunction("concat", new VarArgsSQLFunction(NHibernateUtil.String, "(", "||", ")"));

                        RegisterFunction("current_timestamp", new NoArgSQLFunction("current", NHibernateUtil.DateTime, false));


Clone Instance
4
Line Count
1
Source Line
76
Source File
src/NHibernate/Dialect/InformixDialect.cs

                        RegisterFunction("sysdate", new NoArgSQLFunction("today", NHibernateUtil.DateTime, false));


Clone Instance
5
Line Count
1
Source Line
77
Source File
src/NHibernate/Dialect/InformixDialect.cs

                        RegisterFunction("current", new NoArgSQLFunction("current", NHibernateUtil.DateTime, false));


Clone Instance
6
Line Count
1
Source Line
78
Source File
src/NHibernate/Dialect/InformixDialect.cs

                        RegisterFunction("today", new NoArgSQLFunction("today", NHibernateUtil.DateTime, false));


Clone Instance
7
Line Count
1
Source Line
110
Source File
src/NHibernate/Dialect/MsSql2000Dialect.cs

                        RegisterFunction("current_timestamp", new NoArgSQLFunction("getdate", NHibernateUtil.DateTime, true));


Clone AbstractionParameter Count: 3Parameter Bindings

//                      RegisterFunction("abs", new StandardSQLFunction("abs")); 
//                      RegisterFunction("mod", new StandardSQLFunction("mod", NHibernateUtil.Int32));
//                      RegisterFunction("sqrt", new StandardSQLFunction("sqrt", NHibernateUtil.Double));
//                      RegisterFunction("upper", new StandardSQLFunction("upper"));
//                      RegisterFunction("lower", new StandardSQLFunction("lower"));
//                      RegisterFunction("cast", new CastFunction());
//                      RegisterFunction("concat", new VarArgsSQLFunction(NHibernateUtil.String, "(", "||", ")"));
// the syntax of current_timestamp is extracted from H3.2 tests 
// - test\hql\ASTParserLoadingTest.java
// - test\org\hibernate\test\hql\HQLTest.java
RegisterFunction( [[#variable6c783e80]], new NoArgSQLFunction( [[#variable6c783de0]], NHibernateUtil.DateTime, [[#variable6c783d60]]));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6c783e80]]
"current_timestamp" 
12[[#6c783e80]]
"current_timestamp" 
13[[#6c783e80]]
"sysdate" 
14[[#6c783e80]]
"current" 
15[[#6c783e80]]
"today" 
16[[#6c783e80]]
"current_timestamp" 
17[[#6c783e80]]
"sysdate" 
21[[#6c783de0]]
"getdate" 
22[[#6c783de0]]
"current" 
23[[#6c783de0]]
"today" 
24[[#6c783de0]]
"current" 
25[[#6c783de0]]
"today" 
26[[#6c783de0]]
"current_timestamp" 
27[[#6c783de0]]
"sysdate" 
31[[#6c783d60]]
true 
32[[#6c783d60]]
false 
33[[#6c783d60]]
false 
34[[#6c783d60]]
false 
35[[#6c783d60]]
false 
36[[#6c783d60]]
true 
37[[#6c783d60]]
false