diff options
| author | 2023-04-30 18:30:36 -0400 | |
|---|---|---|
| committer | 2023-04-30 18:30:36 -0400 | |
| commit | 3565aad630864ecdbe53fdaa501ea708555b3c7c (patch) | |
| tree | c743e4ad0bad39ebdb2f514c7cc52d34a257ebbe /Plugins/SqlEnterpriseFormatter/formatexpr.cpp | |
| parent | 1fdc150116cad39aae5c5da407c3312b47a59e3a (diff) | |
New upstream version 3.4.4+dfsg.upstream/3.4.4+dfsg
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatexpr.cpp')
| -rw-r--r-- | Plugins/SqlEnterpriseFormatter/formatexpr.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Plugins/SqlEnterpriseFormatter/formatexpr.cpp b/Plugins/SqlEnterpriseFormatter/formatexpr.cpp index 53c7421..52a1334 100644 --- a/Plugins/SqlEnterpriseFormatter/formatexpr.cpp +++ b/Plugins/SqlEnterpriseFormatter/formatexpr.cpp @@ -78,6 +78,11 @@ void FormatExpr::formatInternal() withDecrIndent(); break; } + case SqliteExpr::Mode::PTR_OP: + { + withStatement(expr->expr1).withOperator(expr->ptrOp).withStatement(expr->expr2); + break; + } case SqliteExpr::Mode::FUNCTION: { withFuncId(expr->function).withParFuncLeft(); @@ -165,6 +170,16 @@ void FormatExpr::formatInternal() withStatement(expr->expr2, "is"); break; } + case SqliteExpr::Mode::DISTINCT: + { + withStatement(expr->expr1).withKeyword("IS"); + if (expr->notKw) + withKeyword("NOT"); + + withKeyword("DISTINCT").withKeyword("FROM"); + withStatement(expr->expr2, "isDistinct"); + break; + } case SqliteExpr::Mode::BETWEEN: { withStatement(expr->expr1); |
