id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 3706,Clearing OGR Attribute Filter on ESRI Personal Geodatabase,joelodom,Even Rouault,"I'm encountering an issue where once I've set an attribute filter on an ESRI personal geodatabase, I cannot clear that filter. If I pass NULL to !SetAttributeFilter, the filter is internally set to """", which makes future queries return zero results instead of all rows. Examining the personal geodatabase driver code, I find: {{{ OGRErr OGRPGeoTableLayer::SetAttributeFilter( const char *pszQuery ) { if( (pszQuery == NULL && this->pszQuery == NULL) || (pszQuery != NULL && this->pszQuery != NULL && EQUAL(pszQuery,this->pszQuery)) ) return OGRERR_NONE; CPLFree( this->pszQuery ); this->pszQuery = CPLStrdup( pszQuery ); ClearStatement(); return OGRERR_NONE; } }}} Around the line {{{ this->pszQuery = CPLStrdup( pszQuery ); }}} there should there be an additional bit of logic that sets this->pszQuery to NULL if pszQuery is NULL. For example, {{{ this->pszQuery = pszQuery ? CPLStrdup( pszQuery ) : 0; }}}",defect,closed,normal,1.7.3,OGR_SF,1.7.2,normal,fixed,pgeo,joelodom