diff options
| author | 2016-06-13 18:42:42 -0400 | |
|---|---|---|
| committer | 2016-06-13 18:42:42 -0400 | |
| commit | 5d9314f134ddd3dc4c853e398ac90ba247fb2e4f (patch) | |
| tree | 5c457fc188036988d7abd29a3eb09931e406510f /Plugins/SqlEnterpriseFormatter/formatupdate.cpp | |
| parent | 8e640722c62692818ab840d50b3758f89a41a54e (diff) | |
Imported Upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatupdate.cpp')
| -rw-r--r-- | Plugins/SqlEnterpriseFormatter/formatupdate.cpp | 4 |
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); |
