summaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatupdate.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2016-06-13 18:42:42 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2016-06-13 18:42:42 -0400
commit5d9314f134ddd3dc4c853e398ac90ba247fb2e4f (patch)
tree5c457fc188036988d7abd29a3eb09931e406510f /Plugins/SqlEnterpriseFormatter/formatupdate.cpp
parent8e640722c62692818ab840d50b3758f89a41a54e (diff)
Imported Upstream version 3.1.0upstream/3.1.0
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);