Sql: Sqlite3 fixed SqlExp for AsTable

git-svn-id: svn://ultimatepp.org/upp/trunk@13430 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-06-23 11:39:54 +00:00
parent 41ae0e39ec
commit a0be63e26b

View file

@ -267,9 +267,9 @@ SqlVal SqlSelect::AsValue() const
SqlSet SqlSelect::AsTable(const SqlId& tab) const
{
StringBuffer t;
t << SqlCode(MSSQL|PGSQL, "")("(")
t << SqlCode(MSSQL|PGSQL|SQLITE3, "")("(")
<< "(" << text << ")" << SqlCode(ORACLE,"")(" as") << " \t" << tab.ToString() << '\t'
<< SqlCode(MSSQL|PGSQL, "")(")");
<< SqlCode(MSSQL|PGSQL|SQLITE3, "")(")");
return SqlSet(String(t), SqlSet::HIGH);
}