mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update Oracle
This commit is contained in:
parent
60b0ac8147
commit
ae0d5d41bb
@ -17,7 +17,7 @@ namespace OrmTest
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// throw new Exception(" to be continued ,It will take another week.");
|
||||
throw new Exception(" to be continued ,It will take another week.");
|
||||
|
||||
// /***Unit Test***/
|
||||
new Select(1).Init();
|
||||
|
@ -45,10 +45,10 @@ namespace OrmTest.UnitTest
|
||||
base.Check(
|
||||
selectorValue,
|
||||
pars,
|
||||
@" @constant0 AS ""Name"" , ""it"".""Id"" AS ""Id"" , ""school"".""Id"" AS ""SchoolId"" , ( ""it"".""Id"" + @Id1 ) AS ""TestId"" ",
|
||||
@" :CONSTANT0 AS ""NAME"" , ""IT"".""ID"" AS ""ID"" , ""SCHOOL"".""ID"" AS ""SCHOOLID"" , ( ""IT"".""ID"" + :ID1 ) AS ""TESTID"" ",
|
||||
new List<SugarParameter>(){
|
||||
new SugarParameter("@constant0","a"),
|
||||
new SugarParameter("@Id1",1)
|
||||
new SugarParameter(":constant0","a"),
|
||||
new SugarParameter(":Id1",1)
|
||||
},
|
||||
"Select.Multiple Error");
|
||||
}
|
||||
@ -63,8 +63,9 @@ namespace OrmTest.UnitTest
|
||||
base.Check(
|
||||
selectorValue,
|
||||
pars,
|
||||
@" ""school"".""Name"" AS ""SchoolName"" ,it.*",
|
||||
new List<SugarParameter>(){
|
||||
@" ""SCHOOL"".""NAME"" AS ""SCHOOLNAME"" ,IT.*",
|
||||
new List<SugarParameter>()
|
||||
{
|
||||
|
||||
},
|
||||
"Select.Multiple Error");
|
||||
@ -82,10 +83,10 @@ namespace OrmTest.UnitTest
|
||||
base.Check(
|
||||
selectorValue,
|
||||
pars,
|
||||
@" @constant0 AS ""Name"" , ( ""it"".""Id"" / @Id1 ) AS ""Id"" , ""school"".""Id"" AS ""SchoolId"" ",
|
||||
@" :CONSTANT0 AS ""NAME"" , ( ""IT"".""ID"" / :ID1 ) AS ""ID"" , ""SCHOOL"".""ID"" AS ""SCHOOLID"" ",
|
||||
new List<SugarParameter>(){
|
||||
new SugarParameter("@constant0","a"),
|
||||
new SugarParameter("@Id1", 2)},
|
||||
new SugarParameter(":constant0","a"),
|
||||
new SugarParameter(":Id1", 2)},
|
||||
"Select.MultipleDynamic Error");
|
||||
}
|
||||
private void single()
|
||||
@ -99,11 +100,11 @@ namespace OrmTest.UnitTest
|
||||
base.Check(
|
||||
selectorValue,
|
||||
pars,
|
||||
@" @constant0 AS ""Name"" , ""Id"" AS ""Id"" , @constant1 AS ""SchoolId"" , ( ""Id"" + @Id2 ) AS ""TestId"" ",
|
||||
@" :CONSTANT0 AS ""NAME"" , ""ID"" AS ""ID"" , :CONSTANT1 AS ""SCHOOLID"" , ( ""ID"" + :ID2 ) AS ""TESTID"" ",
|
||||
new List<SugarParameter>(){
|
||||
new SugarParameter("@constant0","a"),
|
||||
new SugarParameter("@constant1",1),
|
||||
new SugarParameter("@Id2",11 ) },
|
||||
new SugarParameter(":constant0","a"),
|
||||
new SugarParameter(":constant1",1),
|
||||
new SugarParameter(":Id2",11 ) },
|
||||
"Select.single Error");
|
||||
}
|
||||
private void single2(int p = 1)
|
||||
@ -116,11 +117,11 @@ namespace OrmTest.UnitTest
|
||||
base.Check(
|
||||
selectorValue,
|
||||
pars,
|
||||
@" @constant0 AS ""Name"" , ""Id"" AS ""Id"" , @constant1 AS ""SchoolId"" , ( ""Id"" + @Id2 ) AS ""TestId"" ",
|
||||
@" :CONSTANT0 AS ""NAME"" , ""ID"" AS ""ID"" , :CONSTANT1 AS ""SCHOOLID"" , ( ""ID"" + :ID2 ) AS ""TESTID"" ",
|
||||
new List<SugarParameter>(){
|
||||
new SugarParameter("@constant0","a"),
|
||||
new SugarParameter("@constant1",1),
|
||||
new SugarParameter("@Id2",11 ) },
|
||||
new SugarParameter(":constant0","a"),
|
||||
new SugarParameter(":constant1",1),
|
||||
new SugarParameter(":Id2",11 ) },
|
||||
"Select.single Error");
|
||||
}
|
||||
private void single3(int p = 1)
|
||||
@ -131,7 +132,7 @@ namespace OrmTest.UnitTest
|
||||
var selectorValue = expContext.Result.GetString();
|
||||
var pars = expContext.Parameters;
|
||||
base.Check(
|
||||
@" @constant0 AS ""Datetime1"" , ""Name"" AS ""String"" ", null,selectorValue,null,
|
||||
@" :CONSTANT0 AS ""DATETIME1"" , ""NAME"" AS ""STRING"" ", null, selectorValue, null,
|
||||
"Select.single3 Error");
|
||||
}
|
||||
|
||||
@ -144,7 +145,7 @@ namespace OrmTest.UnitTest
|
||||
var selectorValue = expContext.Result.GetString();
|
||||
var pars = expContext.Parameters;
|
||||
base.Check(
|
||||
@"( ""it"".""CreateTime""<>'' AND ""it"".""CreateTime"" IS NOT NULL )", null, selectorValue, null,
|
||||
@"( ""IT"".""CREATETIME""<>'' AND ""IT"".""CREATETIME"" IS NOT NULL )", null, selectorValue, null,
|
||||
"Select.single4 Error");
|
||||
}
|
||||
|
||||
@ -158,8 +159,8 @@ namespace OrmTest.UnitTest
|
||||
var selectorValue = expContext.Result.GetString();
|
||||
var pars = expContext.Parameters;
|
||||
base.Check(
|
||||
@"( @constant0<>'' AND @constant0 IS NOT NULL )", new List<SugarParameter>() {
|
||||
new SugarParameter("@constant0",p)
|
||||
@"( :CONSTANT0<>'' AND :CONSTANT0 IS NOT NULL )", new List<SugarParameter>() {
|
||||
new SugarParameter(":constant0",p)
|
||||
}, selectorValue, pars,
|
||||
"Select.single4 Error");
|
||||
}
|
||||
@ -175,11 +176,11 @@ namespace OrmTest.UnitTest
|
||||
base.Check(
|
||||
selectorValue,
|
||||
pars,
|
||||
@" ""Id"" AS ""x"" , @constant0 AS ""shoolid"" , @constant1 AS ""name"" , ( ""Id"" * @Id2 ) AS ""p"" ",
|
||||
@" ""ID"" AS ""X"" , :CONSTANT0 AS ""SHOOLID"" , :CONSTANT1 AS ""NAME"" , ( ""ID"" * :ID2 ) AS ""P"" ",
|
||||
new List<SugarParameter>(){
|
||||
new SugarParameter("@constant0",1),
|
||||
new SugarParameter("@constant1","a"),
|
||||
new SugarParameter("@Id2",2)},
|
||||
new SugarParameter(":constant0",1),
|
||||
new SugarParameter(":constant1","a"),
|
||||
new SugarParameter(":Id2",2)},
|
||||
"Select.singleDynamic Error");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user