mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
SqlExp: Length now 'LEN' for MSSQL
git-svn-id: svn://ultimatepp.org/upp/trunk@7872 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f5e2ab6a29
commit
4f6da79c33
2 changed files with 4 additions and 3 deletions
|
|
@ -337,9 +337,10 @@ String SqlCompile(const String& s)
|
|||
|
||||
Vector<SqlVal> SplitSqlSet(const SqlSet& set)
|
||||
{
|
||||
const char *s = ~set;
|
||||
String h = ~set;
|
||||
const char *q = h;
|
||||
Vector<SqlVal> r;
|
||||
SqlCompile(s, NULL, ORACLE, &r);
|
||||
SqlCompile(q, NULL, ORACLE, &r);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@ SqlVal Lower(const SqlVal& exp) {
|
|||
}
|
||||
|
||||
SqlVal Length(const SqlVal& exp) {
|
||||
return exp.IsEmpty() ? exp : SqlFunc("length", exp);
|
||||
return exp.IsEmpty() ? exp : SqlFunc(SqlCase(MSSQL, "len")("length"), exp);
|
||||
}
|
||||
|
||||
SqlVal UpperAscii(const SqlVal& exp) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue