@@ -94,7 +94,7 @@ public abstract class AbstractDatabaseTestSQL implements DatabaseTestSQL {
+"AND o.order_id = i.order_id WHERE o.user_id IN (%s, %s) AND o.order_id BETWEEN %s AND %s GROUP BY o.user_id";
privatestaticfinalStringSELECT_GROUP_WITH_BINDING_TABLE_AND_CONFIG_SQL="SELECT i.* FROM t_order o JOIN t_order_item i ON o.user_id = i.user_id AND o.order_id = i.order_id "
+"JOIN t_config c ON o.status = c.status WHERE o.user_id IN (%s, %s) AND o.order_id BETWEEN ? AND ? AND c.status = %s ORDER BY i.item_id";
+"JOIN t_config c ON o.status = c.status WHERE o.user_id IN (%s, %s) AND o.order_id BETWEEN %s AND %s AND c.status = %s ORDER BY i.item_id";
privatestaticfinalStringSELECT_GROUP_WITHOUT_GROUPED_COLUMN_SQL="SELECT count(*) as items_count FROM t_order o JOIN t_order_item i ON o.user_id = i.user_id AND o.order_id = i.order_id"
+" WHERE o.user_id IN (%s, %s) AND o.order_id BETWEEN %s AND %s GROUP BY o.user_id";
privatestaticfinalStringSELECT_LIMIT_WITH_BINDING_TABLE_SQL="SELECT i.* FROM t_order o JOIN t_order_item i ON o.user_id = i.user_id AND o.order_id = i.order_id"
+" WHERE o.user_id IN (%s, %s) AND o.order_id BETWEEN %s AND %s ORDER BY i.item_id DESC OFFSET %s LIMIT %s";