diff options
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); |
