10523.patch

Patch that modify the query that search for a default style to apply - Gabriele Monfardini, 2014-06-10 08:39 AM

Download (1.03 KB)

View differences:

src/providers/postgres/qgspostgresprovider.cpp
3467 3467
                                    " AND f_table_schema=%2"
3468 3468
                                    " AND f_table_name=%3"
3469 3469
                                    " AND f_geometry_column=%4"
3470
                                    " ORDER BY CASE WHEN useAsDefault THEN 1 ELSE 2 END"
3471
                                    ",update_time DESC LIMIT 1" )
3470
                                    " WHERE useAsDefault"
3471
                                    " ORDER BY update_time DESC LIMIT 1" )
3472 3472
                           .arg( QgsPostgresConn::quotedValue( dsUri.database() ) )
3473 3473
                           .arg( QgsPostgresConn::quotedValue( dsUri.schema() ) )
3474 3474
                           .arg( QgsPostgresConn::quotedValue( dsUri.table() ) )