mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-10 03:54:54 -06:00
.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:
parent
743650155a
commit
ee38cbd45b
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue