Skip to content

Commit

Permalink
Oracle styleName
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 8, 2022
1 parent 03f7700 commit a526224
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -3855,7 +3855,7 @@ QString QgsOracleProviderMetadata::loadStoredStyle( const QString &uri, QString
if ( !dsUri.geometryColumn().isEmpty() )
args << dsUri.geometryColumn();

if ( !LoggedExecStatic( qry, "SELECT styleQML FROM ("
if ( !LoggedExecStatic( qry, "SELECT styleName, styleQML FROM ("
"SELECT styleQML"
" FROM layer_styles"
" WHERE f_table_catalog=?"
Expand All @@ -3874,7 +3874,8 @@ QString QgsOracleProviderMetadata::loadStoredStyle( const QString &uri, QString
}
else
{
style = qry.value( 0 ).toString();
styleName = qry.value( 0 ).toString();
style = qry.value( 1 ).toString();
}

conn->disconnect();
Expand Down

0 comments on commit a526224

Please sign in to comment.