mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
upptst: SqlExp: added UT for Coalesce and SqlVal::As
git-svn-id: svn://ultimatepp.org/upp/trunk@4634 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f2b0b9c775
commit
85170e0c17
2 changed files with 679 additions and 610 deletions
|
|
@ -32,7 +32,7 @@ SQLID(OBEXPBI)
|
|||
void Exp0(int dialect, const char *dialectn, const char *sqlexp, SqlStatement x)
|
||||
{
|
||||
LOG("\tTEST(" << dialectn << ",\n\t\t" << sqlexp << ",\n\t\t"
|
||||
<< AsCString(x.Get(dialect)) << ");");
|
||||
<< AsCString(x.Get(dialect)) << "); // " << x.Get(dialect));
|
||||
}
|
||||
|
||||
void Exp(const char *sqlexp, SqlStatement x)
|
||||
|
|
@ -153,6 +153,9 @@ CONSOLE_APP_MAIN
|
|||
EXP(Select(NextVal(SEQ)).Get());
|
||||
EXP(Select(CurrVal(SEQ)).Get());
|
||||
EXP(Select(SqlArg()).From(TABLE1));
|
||||
EXP(Select(Coalesce(COLUMN1, "_")).From(TABLE1));
|
||||
EXP(Select(Coalesce(COLUMN1, "_").As("H")).From(TABLE1));
|
||||
EXP(Select(Coalesce(COLUMN1, "_").As(COLUMN2)).From(TABLE1));
|
||||
|
||||
EXP(Select(COL).From(TABLE1).Where(COL / 2 > 1 && COLUMN1 == "A" || COLUMN2 == Date(2006, 1, 1)));
|
||||
EXP(Select(COL).From(TABLE1).Where(!(COL == 1)));
|
||||
|
|
|
|||
1284
upptst/SqlExp/Test.i
1284
upptst/SqlExp/Test.i
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue