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:
cxl 2014-11-08 18:32:37 +00:00
parent f5e2ab6a29
commit 4f6da79c33
2 changed files with 4 additions and 3 deletions

View file

@ -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;
}

View file

@ -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) {