Mercurial > lada > lada-server
changeset 1255:c0db68c9a87d
enable new-line in sql text of queries
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Wed, 04 Jan 2017 15:36:47 +0100 |
parents | 23b75545dbf0 |
children | 423b5f620467 |
files | src/main/java/de/intevation/lada/model/stammdaten/Query.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/stammdaten/Query.java Mon Dec 19 11:31:33 2016 +0100 +++ b/src/main/java/de/intevation/lada/model/stammdaten/Query.java Wed Jan 04 15:36:47 2017 +0100 @@ -80,7 +80,8 @@ } public String getSql() { - return this.sql; + // remove \r and \n from sql text + return this.sql.replaceAll("(\r\n|\n)", " "); } public void setSql(String sql) {