Mercurial > lada > lada-server
changeset 1257:423b5f620467
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 17 Jan 2017 17:29:11 +0100 |
parents | 1d9552e05b76 (current diff) c0db68c9a87d (diff) |
children | cb88ab44c2be |
files | |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/stammdaten/Query.java Tue Jan 17 17:28:21 2017 +0100 +++ b/src/main/java/de/intevation/lada/model/stammdaten/Query.java Tue Jan 17 17:29:11 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) {