GeoTools
  1. GeoTools
  2. GEOT-1002

JDBCFeatureSource count method doesn't allow Filter.NONE

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.3.M0
    • Fix Version/s: 2.2.2, 2.3.0, 2.4-M0
    • Component/s: jdbc
    • Labels:
      None

      Description

      Index: src/org/geotools/data/jdbc/JDBCFeatureSource.java
      ===================================================================
      — src/org/geotools/data/jdbc/JDBCFeatureSource.java (revision 22383)
      +++ src/org/geotools/data/jdbc/JDBCFeatureSource.java (working copy)
      @@ -300,7 +300,8 @@
      JDBC1DataStore jdbc = getJDBCDataStore();
      SQLBuilder sqlBuilder = jdbc.getSqlBuilder(featureType.getTypeName());

      • if (sqlBuilder.getPostQueryFilter(query.getFilter()) != null) {
        + Filter postFilter = sqlBuilder.getPostQueryFilter(filter);
        + if (postFilter != null && postFilter != Filter.NONE) {
        // this would require postprocessing the filter
        // so we cannot optimize
        return -1;

        Activity

        Hide
        Cory Horner added a comment -
        fixed on 2.2.x, 2.3.x, trunk
        r22439, 22440, 22441 respectively
        Show
        Cory Horner added a comment - fixed on 2.2.x, 2.3.x, trunk r22439, 22440, 22441 respectively
        Hide
        Andrea Aime added a comment -
        Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update
        Show
        Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

          People

          • Assignee:
            Cory Horner
            Reporter:
            Cory Horner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: