mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-15 22:02:51 -06:00
upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@6328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8adb7619b7
commit
f50cea7993
2 changed files with 25 additions and 0 deletions
|
|
@ -193,6 +193,8 @@ CONSOLE_APP_MAIN
|
|||
EXP(Insert(TABLE1)(COLUMN1, 12)(COLUMN2, "hello")(COL, Date(2007, 1, 1)));
|
||||
EXP(Insert(TABLE1)(COLUMN1, 12)(COLUMN2)(COL).From(TABLE1).Where(COL >= 0));
|
||||
|
||||
EXP(Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))));
|
||||
|
||||
EXP(Update(TABLE1)(COLUMN1, 13)(COLUMN2, "world").Where(COL > Date(2007, 1, 1)));
|
||||
|
||||
EXP(Insert(TABLE1)(COL, Select(COLUMN1).From(TABLE1).Where(COLUMN2 == 21).AsValue()));
|
||||
|
|
|
|||
|
|
@ -1713,6 +1713,28 @@
|
|||
TEST(DB2,
|
||||
Insert(TABLE1)(COLUMN1, 12)(COLUMN2)(COL).From(TABLE1).Where(COL >= 0),
|
||||
"insert into \"TABLE1\"(\"COLUMN1\", \"COLUMN2\", \"COL\") select 12, \"COLUMN2\", \"COL\" from \"TABLE1\" where \"COL\" >= 0"); // insert into "TABLE1"("COLUMN1", "COLUMN2", "COL") select 12, "COLUMN2", "COL" from "TABLE1" where "COL" >= 0
|
||||
// ---------------------------------
|
||||
TEST(MY_SQL,
|
||||
Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))),
|
||||
"insert into `TABLE1`(`COLUMN1`) select 1 where not exists (select `ID` from `TABLE1` where `COLUMN1` = 1)"); // insert into `TABLE1`(`COLUMN1`) select 1 where not exists (select `ID` from `TABLE1` where `COLUMN1` = 1)
|
||||
TEST(SQLITE3,
|
||||
Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))),
|
||||
"insert into \"TABLE1\"(\"COLUMN1\") select 1 where not exists (select \"ID\" from \"TABLE1\" where \"COLUMN1\" = 1)"); // insert into "TABLE1"("COLUMN1") select 1 where not exists (select "ID" from "TABLE1" where "COLUMN1" = 1)
|
||||
TEST(ORACLE,
|
||||
Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))),
|
||||
"insert into \"TABLE1\"(\"COLUMN1\") select 1 from DUAL where not exists (select \"ID\" from \"TABLE1\" where \"COLUMN1\" = 1)"); // insert into "TABLE1"("COLUMN1") select 1 from DUAL where not exists (select "ID" from "TABLE1" where "COLUMN1" = 1)
|
||||
TEST(MSSQL,
|
||||
Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))),
|
||||
"insert into \"TABLE1\"(\"COLUMN1\") select 1 where not exists (select \"ID\" from \"TABLE1\" where \"COLUMN1\" = 1)"); // insert into "TABLE1"("COLUMN1") select 1 where not exists (select "ID" from "TABLE1" where "COLUMN1" = 1)
|
||||
TEST(PGSQL,
|
||||
Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))),
|
||||
"insert into \"TABLE1\"(\"COLUMN1\") select 1 where not exists (select \"ID\" from \"TABLE1\" where \"COLUMN1\" = 1)"); // insert into "TABLE1"("COLUMN1") select 1 where not exists (select "ID" from "TABLE1" where "COLUMN1" = 1)
|
||||
TEST(FIREBIRD,
|
||||
Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))),
|
||||
"insert into \"TABLE1\"(\"COLUMN1\") select 1 where not exists (select \"ID\" from \"TABLE1\" where \"COLUMN1\" = 1)"); // insert into "TABLE1"("COLUMN1") select 1 where not exists (select "ID" from "TABLE1" where "COLUMN1" = 1)
|
||||
TEST(DB2,
|
||||
Insert(TABLE1)(COLUMN1, 1).Where(NotExists(Select(ID).From(TABLE1).Where(COLUMN1 == 1))),
|
||||
"insert into \"TABLE1\"(\"COLUMN1\") select 1 where not exists (select \"ID\" from \"TABLE1\" where \"COLUMN1\" = 1)"); // insert into "TABLE1"("COLUMN1") select 1 where not exists (select "ID" from "TABLE1" where "COLUMN1" = 1)
|
||||
// ---------------------------------
|
||||
TEST(MY_SQL,
|
||||
Update(TABLE1)(COLUMN1, 13)(COLUMN2, "world").Where(COL > Date(2007, 1, 1)),
|
||||
|
|
@ -1999,3 +2021,4 @@
|
|||
TEST(DB2,
|
||||
Select(ID).From(TABLE1).Where(ID == SqlSetFrom(m)),
|
||||
"select \"ID\" from \"TABLE1\" where \"ID\" in ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')"); // select "ID" from "TABLE1" where "ID" in ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')
|
||||
// ---------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue