Opened 15 years ago

Closed 15 years ago

#1746 closed bug (fixed)

ogr provider functions uniqueValues(), minimum(), maximum() only work for file based datasources

Reported by: mhugent Owned by: nobody
Priority: critical: causes crash or data corruption Milestone:
Component: Data Provider Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

The ogr provider functions uniqueValues(), minimum(), maximum() only work for file based datasources. Also, if a sublayer of the datasouce is requested, the function only returns an empty variant:

QFileInfo fi( dataSourceUri() );

if ( !fi.exists() )

return QVariant();

Better approach would be to find out the layername and change the SQL accordingly

Change History (2)

comment:1 by jef, 15 years ago

fixed in r10972

comment:2 by jef, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.