summaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatupdate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatupdate.cpp')
-rw-r--r--Plugins/SqlEnterpriseFormatter/formatupdate.cpp4
1 files changed, 4 insertions, 0 deletions
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);