From 3565aad630864ecdbe53fdaa501ea708555b3c7c Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 30 Apr 2023 18:30:36 -0400 Subject: New upstream version 3.4.4+dfsg. --- Plugins/SqlEnterpriseFormatter/formatexpr.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Plugins/SqlEnterpriseFormatter/formatexpr.cpp') 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); -- cgit v1.2.3