diff options
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index 8ba3912444f1..816991ad8a8d 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -463,12 +463,15 @@ namespace OQueryTableConnectionData data(*pData); switch (data.GetJoinType()) { - case LEFT_JOIN: - data.SetJoinType(RIGHT_JOIN); - break; - case RIGHT_JOIN: - data.SetJoinType(LEFT_JOIN); - break; + case LEFT_JOIN: + data.SetJoinType(RIGHT_JOIN); + break; + case RIGHT_JOIN: + data.SetJoinType(LEFT_JOIN); + break; + default: + // the other join types are symmetric, so nothing to change + break; } return BuildJoin(_xConnection, rRh, BuildTable(_xConnection,pLh), &data); } |