mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-07 22:03:42 -06:00
PGSQL except/minus patch
git-svn-id: svn://ultimatepp.org/upp/trunk@1548 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c948749add
commit
a1143569bf
2 changed files with 8 additions and 2 deletions
|
|
@ -17,7 +17,13 @@ SqlSet operator&(const SqlSet& s1, const SqlSet& s2) {
|
|||
SqlSet operator-(const SqlSet& s1, const SqlSet& s2) {
|
||||
if(s1.IsEmpty() || s2.IsEmpty())
|
||||
return s1;
|
||||
return SqlSet(s1() + SqlCase(MSSQL, " except ")(" minus ") + s2(), SqlSet::SETOP);
|
||||
return SqlSet(s1() + SqlCase(MSSQL|PGSQL, " except ")(" minus ") + s2(), SqlSet::SETOP);
|
||||
}
|
||||
|
||||
SqlSet operator-(const SqlSet& s1, const SqlSet& s2) {
|
||||
if(s1.IsEmpty() || s2.IsEmpty())
|
||||
return s1;
|
||||
return SqlSet(s1() + SqlCase(MSSQL|PGSQL, " except ")(" minus ") + s2(), SqlSet::SETOP);
|
||||
}
|
||||
|
||||
String SqlSet::operator~() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue