mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-29 22:32:38 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@7754 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5ea1d124a1
commit
e31df73a27
2 changed files with 26 additions and 0 deletions
|
|
@ -225,6 +225,10 @@ CONSOLE_APP_MAIN
|
|||
m.Add(i, AsString(i));
|
||||
|
||||
EXP(Select(ID).From(TABLE1).Where(ID == SqlSetFrom(m)));
|
||||
|
||||
EXP(SelectAll().From(ID).InnerJoin(
|
||||
SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)));
|
||||
|
||||
|
||||
LOG("\n\n\n=========================================================================");
|
||||
#include "Test.i"
|
||||
|
|
|
|||
|
|
@ -2065,4 +2065,26 @@
|
|||
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')
|
||||
// ---------------------------------
|
||||
TEST(MY_SQL,
|
||||
SelectAll().From(ID).InnerJoin( SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)),
|
||||
"select * from `ID` inner join ((select * from `ID` where `ID` >= '2014-01-01 00:00:00' group by `ID`) as `ID`)"); // select * from `ID` inner join ((select * from `ID` where `ID` >= '2014-01-01 00:00:00' group by `ID`) as `ID`)
|
||||
TEST(SQLITE3,
|
||||
SelectAll().From(ID).InnerJoin( SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)),
|
||||
"select * from \"ID\" inner join ((select * from \"ID\" where \"ID\" >= '2014-01-01 00:00:00' group by \"ID\") as \"ID\")"); // select * from "ID" inner join ((select * from "ID" where "ID" >= '2014-01-01 00:00:00' group by "ID") as "ID")
|
||||
TEST(ORACLE,
|
||||
SelectAll().From(ID).InnerJoin( SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)),
|
||||
"select * from \"ID\" inner join ((select * from \"ID\" where \"ID\" >= to_date('2014/1/1/0', 'SYYYY/MM/DD/SSSSS') group by \"ID\") as \"ID\")"); // select * from "ID" inner join ((select * from "ID" where "ID" >= to_date('2014/1/1/0', 'SYYYY/MM/DD/SSSSS') group by "ID") as "ID")
|
||||
TEST(MSSQL,
|
||||
SelectAll().From(ID).InnerJoin( SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)),
|
||||
"select * from \"ID\" inner join (select * from \"ID\" where \"ID\" >= convert(datetime, '2014/1/1', 120) group by \"ID\") as \"ID\""); // select * from "ID" inner join (select * from "ID" where "ID" >= convert(datetime, '2014/1/1', 120) group by "ID") as "ID"
|
||||
TEST(PGSQL,
|
||||
SelectAll().From(ID).InnerJoin( SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)),
|
||||
"select * from \"ID\" inner join (select * from \"ID\" where \"ID\" >= timestamp '2014-01-01 00:00:00' group by \"ID\") as \"ID\""); // select * from "ID" inner join (select * from "ID" where "ID" >= timestamp '2014-01-01 00:00:00' group by "ID") as "ID"
|
||||
TEST(FIREBIRD,
|
||||
SelectAll().From(ID).InnerJoin( SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)),
|
||||
"select * from \"ID\" inner join ((select * from \"ID\" where \"ID\" >= '2014-01-01 00:00:00' group by \"ID\") as \"ID\")"); // select * from "ID" inner join ((select * from "ID" where "ID" >= '2014-01-01 00:00:00' group by "ID") as "ID")
|
||||
TEST(DB2,
|
||||
SelectAll().From(ID).InnerJoin( SelectAll().From(ID).Where(ID >= Time(2014, 1, 1, 0, 0, 0)).GroupBy(ID).AsTable(ID)),
|
||||
"select * from \"ID\" inner join ((select * from \"ID\" where \"ID\" >= '2014-01-01 00:00:00' group by \"ID\") as \"ID\")"); // select * from "ID" inner join ((select * from "ID" where "ID" >= '2014-01-01 00:00:00' group by "ID") as "ID")
|
||||
// ---------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue