From 5d9314f134ddd3dc4c853e398ac90ba247fb2e4f Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 13 Jun 2016 18:42:42 -0400 Subject: Imported Upstream version 3.1.0 --- Plugins/SqlEnterpriseFormatter/formatupdate.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Plugins/SqlEnterpriseFormatter/formatupdate.cpp') diff --git a/Plugins/SqlEnterpriseFormatter/formatupdate.cpp b/Plugins/SqlEnterpriseFormatter/formatupdate.cpp index 54ce927..2670966 100644 --- a/Plugins/SqlEnterpriseFormatter/formatupdate.cpp +++ b/Plugins/SqlEnterpriseFormatter/formatupdate.cpp @@ -31,6 +31,8 @@ void FormatUpdate::formatInternal() withNewLine().withLinedUpKeyword("SET"); + markAndKeepIndent("updateColumns"); + bool first = true; foreach (const SqliteUpdate::ColumnAndValue& keyVal, upd->keyValueMap) { @@ -41,6 +43,8 @@ void FormatUpdate::formatInternal() first = false; } + withDecrIndent(); + if (upd->where) withNewLine().withLinedUpKeyword("WHERE").withStatement(upd->where); -- cgit v1.2.3