aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatupdate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatupdate.cpp')
-rw-r--r--Plugins/SqlEnterpriseFormatter/formatupdate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Plugins/SqlEnterpriseFormatter/formatupdate.cpp b/Plugins/SqlEnterpriseFormatter/formatupdate.cpp
index 641c895..0adeb17 100644
--- a/Plugins/SqlEnterpriseFormatter/formatupdate.cpp
+++ b/Plugins/SqlEnterpriseFormatter/formatupdate.cpp
@@ -49,6 +49,9 @@ void FormatUpdate::formatInternal()
withDecrIndent();
+ if (upd->from)
+ withNewLine().withLinedUpKeyword("FROM").withStatement(upd->from, "updateColumns");
+
if (upd->where)
withNewLine().withLinedUpKeyword("WHERE").withStatement(upd->where);