aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatupdate.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-12-17 07:06:30 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-12-17 07:06:30 -0500
commit1fdc150116cad39aae5c5da407c3312b47a59e3a (patch)
tree123c79a4d7ad2d45781ba03ce939f7539fb428d8 /Plugins/SqlEnterpriseFormatter/formatupdate.cpp
parentfeda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 (diff)
New upstream version 3.3.3+dfsg1.upstream/3.3.3+dfsg1
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);