#1512 - Invalid SQL with Postgres + order by nulls first/last + where() expression on ManyToMany

This commit is contained in:
rob bygrave
2018-10-24 23:25:48 +13:00
parent 156469ae0f
commit e06967ff4a
@@ -4,7 +4,7 @@ import java.util.regex.Pattern;
class DbOrderByTrim {
private static final Pattern orderByTrim = Pattern.compile("(?i)\\b asc\\b|\\b desc\\b");
private static final Pattern orderByTrim = Pattern.compile("(?i)\\b asc\\b|\\b desc\\b|\\b nulls first\\b|\\b nulls last\\b");
/**
* Convert the dbOrderBy clause to be safe for adding to select or distinct on.