SqlExp: CreateTable legacy fix

git-svn-id: svn://ultimatepp.org/upp/trunk@9021 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-10-15 07:59:10 +00:00
parent 4d134959ad
commit 8f807ca2de

View file

@ -367,9 +367,9 @@ SqlStatement SqlCreateTable::As(const SqlSelect& select)
text << "table " << table.Quoted();
if(!permanent){
if(transaction)
text << SqlCode(ORACLE | PGSQL, " on commit delete rows")("");
text << SqlCode(ORACLE, " on commit delete rows")("");
else
text << SqlCode(ORACLE | PGSQL, " on commit preserve rows")("");
text << SqlCode(ORACLE, " on commit preserve rows")("");
}
text << " as (" + SqlStatement(select).GetText() + ")";
return SqlStatement(text);