mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.TSql
git-svn-id: svn://ultimatepp.org/upp/trunk@8433 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7374a1b802
commit
bc60398ff9
2 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#define _TSql_icpp_init_stub
|
||||
#include "Sql/init"
|
||||
#include "TCore/init"
|
||||
#define BLITZ_INDEX__ F118798ccfac1d6c5db6791de84b29726
|
||||
#define BLITZ_INDEX__ Fc7553a79185141de02fd1db792933d93
|
||||
#include "TSql_init.icpp"
|
||||
#undef BLITZ_INDEX__
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -619,7 +619,7 @@ SqlVal SchemaAlias(const SqlId& table)
|
|||
|
||||
SqlId SchemaId(const SqlId& table_id, const SqlId& alias_id)
|
||||
{
|
||||
return SqlId(SchemaTableName(~table_id) + SqlCase(MSSQL, " as ")(" ") + ~alias_id);
|
||||
return SqlId(SchemaTableName(~table_id) + SqlCode(MSSQL, " as ")(" ") + ~alias_id);
|
||||
}
|
||||
|
||||
SqlId SchemaId(const SqlId& table_id)
|
||||
|
|
@ -773,7 +773,7 @@ SqlVal GetYearDayIndex(const SqlVal& date)
|
|||
{
|
||||
SqlVal mssql("substring(convert(varchar(max), " + ~date + ", 1), 1, 5)", SqlS::FN);
|
||||
SqlVal oracle(SqlFunc("to_char", date, "MM/DD"));
|
||||
return SqlVal(SqlCase(MSSQL, ~mssql)(~oracle), SqlS::FN);
|
||||
return SqlVal(SqlCode(MSSQL, ~mssql)(~oracle), SqlS::FN);
|
||||
}
|
||||
|
||||
String GetYearDayIndex(Date date)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue