diff options
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatupdate.cpp')
| -rw-r--r-- | Plugins/SqlEnterpriseFormatter/formatupdate.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Plugins/SqlEnterpriseFormatter/formatupdate.cpp b/Plugins/SqlEnterpriseFormatter/formatupdate.cpp index 0adeb17..cb802d8 100644 --- a/Plugins/SqlEnterpriseFormatter/formatupdate.cpp +++ b/Plugins/SqlEnterpriseFormatter/formatupdate.cpp @@ -55,5 +55,10 @@ void FormatUpdate::formatInternal() if (upd->where) withNewLine().withLinedUpKeyword("WHERE").withStatement(upd->where); + if (!upd->returning.isEmpty()) + { + withNewLine().withLinedUpKeyword("RETURNING"); + withStatementList(upd->returning, "returningColumns"); + } withSemicolon(); } |
