.Sql/SqlStatement.cpp: modified SqlSelect::AsTable to remove extra parentheses only in MS-SQL dialect

git-svn-id: svn://ultimatepp.org/upp/trunk@4617 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2012-02-24 22:30:28 +00:00
parent 743650155a
commit ee38cbd45b

View file

@ -245,7 +245,9 @@ SqlVal SqlSelect::AsValue() const
SqlSet SqlSelect::AsTable(const SqlId& tab) const
{
StringBuffer t;
t << "(" << text << ")" << (char)SQLC_AS << "\t" << tab.ToString() << '\t';
t << SqlCase(MSSQL, "")("(")
<< "(" << text << ")" << (char)SQLC_AS << "\t" << tab.ToString() << '\t'
<< SqlCase(MSSQL, "")(")");
return SqlSet(String(t), SqlSet::HIGH);
}