File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -711,6 +711,10 @@ struct PGTypeInfo
711
711
712
712
bool QgsPostgresProvider::loadFields ()
713
713
{
714
+
715
+ // Clear cached information about enum values support
716
+ mShared ->clearSupportsEnumValuesCache ();
717
+
714
718
if ( !mIsQuery )
715
719
{
716
720
QgsDebugMsg ( QStringLiteral ( " Loading fields for table %1" ).arg ( mTableName ) );
@@ -5175,6 +5179,12 @@ void QgsPostgresSharedData::clear()
5175
5179
mFidCounter = 0 ;
5176
5180
}
5177
5181
5182
+ void QgsPostgresSharedData::clearSupportsEnumValuesCache ()
5183
+ {
5184
+ QMutexLocker locker ( &mMutex );
5185
+ mFieldSupportsEnumValues .clear ();
5186
+ }
5187
+
5178
5188
bool QgsPostgresSharedData::fieldSupportsEnumValuesIsSet ( int index )
5179
5189
{
5180
5190
QMutexLocker locker ( &mMutex );
Original file line number Diff line number Diff line change @@ -522,6 +522,7 @@ class QgsPostgresSharedData
522
522
QVariantList lookupKey ( QgsFeatureId featureId );
523
523
void clear ();
524
524
525
+ void clearSupportsEnumValuesCache ( );
525
526
bool fieldSupportsEnumValuesIsSet ( int index );
526
527
bool fieldSupportsEnumValues ( int index );
527
528
void setFieldSupportsEnumValues ( int index, bool isSupported );
You can’t perform that action at this time.
0 commit comments