Skip to content
Permalink
Browse files

SQL ordering fix (do not use indexed columns for type attributes)

  • Loading branch information
serge-rider committed Jan 14, 2020
1 parent b304b61 commit 90ee0d6659e35f131ab2c3d9593a5f0fcc06b89e
@@ -472,7 +472,7 @@ public static void appendOrderString(@NotNull DBDDataFilter filter, @NotNull DBP
for (DBDAttributeConstraint co : filter.getOrderConstraints()) {
if (hasOrder) query.append(',');
String orderString = null;
if (co.getAttribute() == null || co.getAttribute() instanceof DBDAttributeBindingMeta) {
if (co.getAttribute() == null || co.getAttribute() instanceof DBDAttributeBindingMeta || co.getAttribute() instanceof DBDAttributeBindingType) {
String orderColumn = co.getAttributeName();
if (co.getAttribute() == null || PATTERN_SIMPLE_NAME.matcher(orderColumn).matches()) {
// It is a simple column.

0 comments on commit 90ee0d6

Please sign in to comment.
You can’t perform that action at this time.